| Author |
Exception in WSDL2Java
|
Viru Sagar
Greenhorn
Joined: Oct 29, 2007
Posts: 8
|
|
Hi All, I ahve the following WSDL file and it has a schema defined with name "ConcatS", which is further referenced as a part of a message. But when I try to generate the sourcecode, i get following error java.io.IOException: Type {http://www.example.org/WSDLFile/}ConcatS is referenced but not defined. <?xml version="1.0" encoding="UTF-8" standalone="no"?> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.example.org/WSDLFile/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="WSDLFile" targetNamespace="http://www.example.org/WSDLFile/" xmlns:p="http://schemas.xmlsoap.org/wsdl/http/"> <wsdl:types> <xsd:schema targetNamespace="http://www.example.org/WSDLFile/"> <xsd:element name="ConcatS"> <xsd:complexType> <xsd:sequence> <xsd:element name="String4" type="xsd:string"></xsd:element> <xsd:element name="String2" type="xsd:string"></xsd:element> <xsd:element name="String3" type="xsd:string"></xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema> </wsdl:types> <wsdl:message name="NewOperationRequest"> <wsdl:part name="NewOperationRequest" type="xsd:string"/> </wsdl:message> <wsdl:message name="NewOperationResponse"> <wsdl:part name="NewOperationResponse" type="xsd:string"/> </wsdl:message> <wsdl:message name="ConcatRequest"> <wsdl:part name="testPart" type="tns:ConcatS"></wsdl:part> </wsdl:message> <wsdl:message name="ConcatResponse"> <wsdl:part name="ConcatResponse" type="xsd:string"></wsdl:part> </wsdl:message> <wsdl:portType name="WSDLFile"> <wsdl peration name="NewOperation"> <wsdl:input message="tns:NewOperationRequest"/> <wsdl utput message="tns:NewOperationResponse"/> </wsdl peration> <wsdl peration name="Concat"> <wsdl:input message="tns:ConcatRequest"></wsdl:input> <wsdl utput message="tns:ConcatResponse"></wsdl utput> </wsdl peration> </wsdl:portType> <wsdl:binding name="WSDLFileSOAP" type="tns:WSDLFile"> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl peration name="NewOperation"> <soap peration soapAction="http://www.example.org/WSDLFile/NewOperation"/> <wsdl:input> <soap:body namespace="http://www.example.org/WSDLFile/" use="literal"/> </wsdl:input> <wsdl utput> <soap:body namespace="http://www.example.org/WSDLFile/" use="literal"/> </wsdl utput> </wsdl peration> <wsdl peration name="Concat"> <soap peration soapAction="http://www.example.org/WSDLFile/Concat"/> <wsdl:input> <soap:body namespace="http://www.example.org/WSDLFile/" use="literal"/> </wsdl:input> <wsdl utput> <soap:body namespace="http://www.example.org/WSDLFile/" use="literal"/> </wsdl utput> </wsdl peration> </wsdl:binding> <wsdl:service name="WSDLFile"> <wsdl:port binding="tns:WSDLFileSOAP" name="WSDLFileSOAP"> <soap:address location="http://www.example.org/"/> </wsdl:port> <p:address location="http://127.0.0.1:8080/SimpleWebService"></p:address></wsdl:service> </wsdl:definitions>
|
 |
Viru Sagar
Greenhorn
Joined: Oct 29, 2007
Posts: 8
|
|
When I use "<wsdl art name="testPart" element="tns:ConcatS"></wsdl art>" It works fine. But based upon my study from an article : If RPC Style messaging is used then part element must have "type" attribute instead of element. With the following I can not generate the Java code. "<wsdl art name="testPart" type="tns:ConcatS"></wsdl art>"
|
 |
 |
|
|
subject: Exception in WSDL2Java
|
|
|