• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Exception in WSDL2Java

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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:operation name="NewOperation">
<wsdl:input message="tns:NewOperationRequest"/>
<wsdl:output message="tns:NewOperationResponse"/>
</wsdl:operation>
<wsdl:operation name="Concat">
<wsdl:input message="tns:ConcatRequest"></wsdl:input>
<wsdl:output message="tns:ConcatResponse"></wsdl:output>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="WSDLFileSOAP" type="tns:WSDLFile">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="NewOperation">
<soap:operation soapAction="http://www.example.org/WSDLFile/NewOperation"/>
<wsdl:input>
<soap:body namespace="http://www.example.org/WSDLFile/" use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body namespace="http://www.example.org/WSDLFile/" use="literal"/>
</wsdl:output>
</wsdl:operation>

<wsdl:operation name="Concat">
<soap:operation soapAction="http://www.example.org/WSDLFile/Concat"/>
<wsdl:input>
<soap:body namespace="http://www.example.org/WSDLFile/" use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body namespace="http://www.example.org/WSDLFile/" use="literal"/>
</wsdl:output>
</wsdl:operation>
</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
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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>"
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic