XFile在Myeclipse中生成的WSDL文件出错!!!!!!!
时间:2009-06-03
来源:互联网
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://example2.webservices" xmlns:tns="http://example2.webservices" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" xmlns:ns1="http://orm" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc11="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenc12="http://www.w3.org/2003/05/soap-encoding" xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://example2.webservices">
<xsd:element name="getUserList">
<xsd:complexType/>
</xsd:element>
<xsd:element name="getUserListResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true" type="ns1:ArrayOfUser"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="getUser">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="in0" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="getUserResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true" type="ns1:User"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="createUser">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="in0" nillable="true" type="ns1:User"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="createUserResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="getUserArray">
<xsd:complexType/>
</xsd:element>
<xsd:element name="getUserArrayResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true" type="ns1:ArrayOfUser"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://orm">
<xsd:complexType name="ArrayOfUser">
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs="0" name="User" nillable="true" type="ns1:User"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="User">
<xsd:sequence>
<xsd:element minOccurs="0" name="createTime" type="xsd:dateTime"/>
<xsd:element minOccurs="0" name="loginName" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="mobile" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="password" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
</wsdl:types>
<wsdl:message name="getUserResponse">
<wsdl:part name="parameters" element="tns:getUserResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="getUserArrayRequest">
<wsdl:part name="parameters" element="tns:getUserArray">
</wsdl:part>
</wsdl:message>
<wsdl:message name="createUserRequest">
<wsdl:part name="parameters" element="tns:createUser">
</wsdl:part>
</wsdl:message>
<wsdl:message name="getUserListResponse">
<wsdl:part name="parameters" element="tns:getUserListResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="getUserArrayResponse">
<wsdl:part name="parameters" element="tns:getUserArrayResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="createUserResponse">
<wsdl:part name="parameters" element="tns:createUserResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="getUserRequest">
<wsdl:part name="parameters" element="tns:getUser">
</wsdl:part>
</wsdl:message>
<wsdl:message name="getUserListRequest">
<wsdl:part name="parameters" element="tns:getUserList">
</wsdl:part>
</wsdl:message>
<wsdl:portType name="UserServicePortType">
<wsdl:operation name="getUserList">
<wsdl:input name="getUserListRequest" message="tns:getUserListRequest">
</wsdl:input>
<wsdl:output name="getUserListResponse" message="tns:getUserListResponse">
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getUser">
<wsdl:input name="getUserRequest" message="tns:getUserRequest">
</wsdl:input>
<wsdl:output name="getUserResponse" message="tns:getUserResponse">
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="createUser">
<wsdl:input name="createUserRequest" message="tns:createUserRequest">
</wsdl:input>
<wsdl:output name="createUserResponse" message="tns:createUserResponse">
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getUserArray">
<wsdl:input name="getUserArrayRequest" message="tns:getUserArrayRequest">
</wsdl:input>
<wsdl:output name="getUserArrayResponse" message="tns:getUserArrayResponse">
</wsdl:output>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="UserServiceHttpBinding" type="tns:UserServicePortType">
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="getUserList">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="getUserListRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="getUserListResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getUser">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="getUserRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="getUserResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="createUser">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="createUserRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="createUserResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getUserArray">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="getUserArrayRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="getUserArrayResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="UserService">
<wsdl:port name="UserServiceHttpPort" binding="tns:UserServiceHttpBinding">
<wsdlsoap:address location="http://localhost:8080/webservices/UserService.ws"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
错误信息:
src-resolve.4.2: Error resolving component 'ns1:ArrayOfUser'. It was detected that 'ns1:ArrayOfUser' is in namespace 'http://orm', but components
from this namespace are not referenceable from schema document 'file:///D:/workspace/fanfull/IBCT/webservices/src/UserService.wsdl'. If this is
the incorrect namespace, perhaps the prefix of 'ns1:ArrayOfUser' needs to be changed. If this is the correct namespace, then an appropriate
'import' tag should be added to 'file:///D:/workspace/fanfull/IBCT/webservices/src/UserService.wsdl'.
<wsdl:definitions targetNamespace="http://example2.webservices" xmlns:tns="http://example2.webservices" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" xmlns:ns1="http://orm" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc11="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenc12="http://www.w3.org/2003/05/soap-encoding" xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://example2.webservices">
<xsd:element name="getUserList">
<xsd:complexType/>
</xsd:element>
<xsd:element name="getUserListResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true" type="ns1:ArrayOfUser"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="getUser">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="in0" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="getUserResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true" type="ns1:User"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="createUser">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="in0" nillable="true" type="ns1:User"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="createUserResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="getUserArray">
<xsd:complexType/>
</xsd:element>
<xsd:element name="getUserArrayResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true" type="ns1:ArrayOfUser"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://orm">
<xsd:complexType name="ArrayOfUser">
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs="0" name="User" nillable="true" type="ns1:User"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="User">
<xsd:sequence>
<xsd:element minOccurs="0" name="createTime" type="xsd:dateTime"/>
<xsd:element minOccurs="0" name="loginName" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="mobile" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="password" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
</wsdl:types>
<wsdl:message name="getUserResponse">
<wsdl:part name="parameters" element="tns:getUserResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="getUserArrayRequest">
<wsdl:part name="parameters" element="tns:getUserArray">
</wsdl:part>
</wsdl:message>
<wsdl:message name="createUserRequest">
<wsdl:part name="parameters" element="tns:createUser">
</wsdl:part>
</wsdl:message>
<wsdl:message name="getUserListResponse">
<wsdl:part name="parameters" element="tns:getUserListResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="getUserArrayResponse">
<wsdl:part name="parameters" element="tns:getUserArrayResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="createUserResponse">
<wsdl:part name="parameters" element="tns:createUserResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="getUserRequest">
<wsdl:part name="parameters" element="tns:getUser">
</wsdl:part>
</wsdl:message>
<wsdl:message name="getUserListRequest">
<wsdl:part name="parameters" element="tns:getUserList">
</wsdl:part>
</wsdl:message>
<wsdl:portType name="UserServicePortType">
<wsdl:operation name="getUserList">
<wsdl:input name="getUserListRequest" message="tns:getUserListRequest">
</wsdl:input>
<wsdl:output name="getUserListResponse" message="tns:getUserListResponse">
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getUser">
<wsdl:input name="getUserRequest" message="tns:getUserRequest">
</wsdl:input>
<wsdl:output name="getUserResponse" message="tns:getUserResponse">
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="createUser">
<wsdl:input name="createUserRequest" message="tns:createUserRequest">
</wsdl:input>
<wsdl:output name="createUserResponse" message="tns:createUserResponse">
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getUserArray">
<wsdl:input name="getUserArrayRequest" message="tns:getUserArrayRequest">
</wsdl:input>
<wsdl:output name="getUserArrayResponse" message="tns:getUserArrayResponse">
</wsdl:output>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="UserServiceHttpBinding" type="tns:UserServicePortType">
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="getUserList">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="getUserListRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="getUserListResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getUser">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="getUserRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="getUserResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="createUser">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="createUserRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="createUserResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getUserArray">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="getUserArrayRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="getUserArrayResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="UserService">
<wsdl:port name="UserServiceHttpPort" binding="tns:UserServiceHttpBinding">
<wsdlsoap:address location="http://localhost:8080/webservices/UserService.ws"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
错误信息:
src-resolve.4.2: Error resolving component 'ns1:ArrayOfUser'. It was detected that 'ns1:ArrayOfUser' is in namespace 'http://orm', but components
from this namespace are not referenceable from schema document 'file:///D:/workspace/fanfull/IBCT/webservices/src/UserService.wsdl'. If this is
the incorrect namespace, perhaps the prefix of 'ns1:ArrayOfUser' needs to be changed. If this is the correct namespace, then an appropriate
'import' tag should be added to 'file:///D:/workspace/fanfull/IBCT/webservices/src/UserService.wsdl'.
作者: chufd 发布时间: 2009-06-03
貌似数组类型的数据出错了
作者: qmj150 发布时间: 2009-06-09
是因为名字空间不对造成的,客户端的wsdl文件不是服务器目前对应最新的,
服务器上名字空间是 http://example2.webservices 而你本地调的时候传的名字空间是: “http://orm” ,二者不一致。重新导出下wsdl文件,客户端重新编译下就可以啦。
服务器上名字空间是 http://example2.webservices 而你本地调的时候传的名字空间是: “http://orm” ,二者不一致。重新导出下wsdl文件,客户端重新编译下就可以啦。
作者: joinlover 发布时间: 2009-06-09
帮你顶,我也遇到这个问题没有解决啊!!!
作者: birbe 发布时间: 2009-07-23
同样的问题,希望高人指点一二。
作者: fenghao_1998 发布时间: 2011-11-03
大哥 你的service.xml 配置是否正确 想要实现xfire
第一: 定义接口和实现接口的类
第二: 配置service.xml文件
第三: 正确引入jar包
自己慢慢看吧
第一: 定义接口和实现接口的类
第二: 配置service.xml文件
第三: 正确引入jar包
自己慢慢看吧
作者: ylovep 发布时间: 2011-11-03
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28