以文本方式查看主题 - 计算机科学论坛 (http://bbs.xml.org.cn/index.asp) -- 『 Web Services & Semantic Web Services 』 (http://bbs.xml.org.cn/list.asp?boardid=10) ---- 关于用AXIS2生成WEBSERVICE客户端的问题 (http://bbs.xml.org.cn/dispbbs.asp?boardid=10&rootid=&id=66513) |
-- 作者:zfk120 -- 发布时间:8/28/2008 3:48:00 PM -- 关于用AXIS2生成WEBSERVICE客户端的问题 小弟做一个关于WEBSERVICE的项目,我只负责写客户端,调用某公司的服务器端, 开发环境是jdk1.6.0_02、tomcat5.5.20、eclipse3.2、myeclipse5.5、AXIS2。开发环境已经搭好,并且测试是正确的 现在碰到这样的问题:我在用AXIS2生成客户端的时候提示下错误: An error occured while code generating java.lang.interruptedException: java.lang.RuntimeException: org.apache.axis2.schema.SchemaCompilationException:type missing! 我的WSDL文件如下: <?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions xmlns:p1="http://emu.cmbc.com.cn/xi/transferdata" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" name="CMBC_LOSTST_OUT" targetNamespace="http://emu.cmbc.com.cn/xi/transferdata"> <wsdl:types> <xsd:schema targetNamespace="http://emu.cmbc.com.cn/xi/transferdata" xmlns="http://emu.cmbc.com.cn/xi/transferdata" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:element name="CMBC_LOSTST_TOLOS" type="CMBC_LOSBPNAME_DT"/> <xsd:element name="CMBC_LOSTST_LOSREQ" type="CMBC_LOSBP_DT"/> <xsd:complexType name="CMBC_LOSBP_DT"> <xsd:sequence> <xsd:element name="BUSINESSPARTNER" minOccurs="0"> <xsd:annotation> <xsd:appinfo source="http://sap.com/xi/TextID">48bc3ee05fa211ddc454001c251a9614</xsd:appinfo> </xsd:annotation> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:maxLength value="10"/> </xsd:restriction> </xsd:simpleType> </xsd:element> </xsd:sequence> </xsd:complexType> <xsd:complexType name="CMBC_LOSBPNAME_DT"> <xsd:sequence> <xsd:element name="NAME" minOccurs="0"> <xsd:annotation> <xsd:appinfo source="http://sap.com/xi/TextID">8c0f81705fa211ddc6ee001c251a9614</xsd:appinfo> </xsd:annotation> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:maxLength value="40"/> </xsd:restriction> </xsd:simpleType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:schema> </wsdl:types> <wsdl:message name="CMBC_LOSTST_LOSREQ"> <wsdl:part name="CMBC_LOSTST_LOSREQ" element="p1:CMBC_LOSTST_LOSREQ" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"/> </wsdl:message> <wsdl:message name="CMBC_LOSTST_TOLOS"> <wsdl:part name="CMBC_LOSTST_TOLOS" element="p1:CMBC_LOSTST_TOLOS" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"/> </wsdl:message> <wsdl:portType name="CMBC_LOSTST_OUT"> <wsdl:operation name="CMBC_LOSTST_OUT"> <wsdl:input message="p1:CMBC_LOSTST_LOSREQ"/> <wsdl:output message="p1:CMBC_LOSTST_TOLOS"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="CMBC_LOSTST_OUTBinding" type="p1:CMBC_LOSTST_OUT" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/> <wsdl:operation name="CMBC_LOSTST_OUT"> <soap:operation soapAction="http://sap.com/xi/WebService/soap1.1" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/> <wsdl:input> <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/> </wsdl:input> <wsdl:output> <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="CMBC_LOSTST_OUTService"> <wsdl:port name="CMBC_LOSTST_OUTPort" binding="p1:CMBC_LOSTST_OUTBinding" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> <soap:address location="http://195.203.131.12:51300/XISOAPAdapter/MessageServlet?channel=:CMBC_LOS2SAP:CMBC_LOS2SAP_CNL&version=3.0&Sender.Service=CMBC_LOS2SAP&Interface=http%3A%2F%2Femu.cmbc.com.cn%2Fxi%2Ftransferdata%5ECMBC_LOSTST_OUT" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/> </wsdl:port> </wsdl:service> </wsdl:definitions> 请各位大侠帮忙 [此贴子已经被作者于2008-8-28 19:29:00编辑过]
|
-- 作者:zfk120 -- 发布时间:8/28/2008 9:18:00 PM -- 我都晕了,没一个人会吗? |
W 3 C h i n a ( since 2003 ) 旗 下 站 点 苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》 |
93.750ms |