I have tried to generate java code from wsdl2java tool. But the code it generates doesn't create a method which is specified in wsdl. My WSDL is simple enough there is a method getAllDocs() which returns array type. I dont know whats the problem, may be its a problem with wsdl or there is a bug in axis2.
The wsdl source code is pasted below <?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions xmlns:tns="http://www.example.org/is" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.org/is"> <!-- Types --> <wsdl:types> <xsd:schema elementFormDefault="qualified" targetNamespace="http://www.example.org/is" xmlns="http://www.w3.org/2001/XMLSchema"> <!-- ResourceContent --> <xsd:element name="ResourceContent" type="xsd:string" /> <!-- Array Of Resource Documents --> <xsd:element name="ArrayOfResources" type="tns:ArrayOfResourcesType" /> <xsd:complexType name="ArrayOfResourcesType"> <xsd:sequence> <xsd:element ref="tns:ResourceContent" minOccurs="0" maxOccurs="unbounded" /> </xsd:sequence> </xsd:complexType> </xsd:schema> </wsdl:types> <!-- getAllDocs Messages--> <!-- <wsdl:message name="getAllDocsRequest"> <wsdl:part name="getAllDocsRequest" /> </wsdl:message> --> <wsdl:message name="getAllDocsResponse"> <wsdl:part name="getAllDocsResponse" element="tns:ArrayOfResources" /> </wsdl:message> <!-- Resource Discovery --> <wsdl:portType name="ResourceDiscovery"> <wsdl:operation name="getAllDocs"> <wsdl:output message="tns:getAllDocsResponse" /> </wsdl:operation> </wsdl:portType> <wsdl:binding name="ResourceDiscoverySoapBinding" type="tns:ResourceDiscovery"> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" /> <wsdl:operation name="getAllDocs"> <soap:operation soapAction="http://www.example.org/is/getAllDocs" /> <wsdl:output> <soap:body use="literal" namespace="http://www.example.org/is" /> </wsdl:output> </wsdl:operation> </wsdl:binding> <!--Service Description --> <wsdl:service name="InfotelService"> <wsdl:port name="ResourceDiscovery" binding="tns:ResourceDiscoverySoapBinding"> <soap:address location="http://localhost:8080/axis/services/InfotelService" /> </wsdl:port> </wsdl:service> </wsdl:definitions> Thanks in advance. -- View this message in context: http://www.nabble.com/-AXIS2-WSDL2Java-doesn%27t-generate-WSDL%27s-method-in-stub.-t1489825.html#a4036973 Sent from the Axis - User forum at Nabble.com.
