Hi,
I created a simple wsdl file with gSoap and wanted to create the java classes with WSDL2Java. But WSDL2Java does not create the method. What´s wrong with the WSDL file?
Regards,
Alex
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="Service"
targetNamespace="http://localhost:80/Service.wsdl";
xmlns:tns="http://localhost:80/Service.wsdl";
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:cd="http://tempuri.org/cd.xsd";
xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:MIME="http://schemas.xmlsoap.org/wsdl/mime/";
xmlns:DIME="http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/";
xmlns:WSDL="http://schemas.xmlsoap.org/wsdl/";
xmlns="http://schemas.xmlsoap.org/wsdl/";>
<types>
<schema targetNamespace="http://tempuri.org/cd.xsd";
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:cd="http://tempuri.org/cd.xsd";
xmlns="http://www.w3.org/2001/XMLSchema";
elementFormDefault="unqualified"
attributeFormDefault="unqualified">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="StdRequest">
<sequence>
<element ref="cd:id" minOccurs="1" maxOccurs="1"/>
</sequence>
</complexType>
<element name="id" type="xsd:int"/>
<element name="err" type="xsd:int"/>
<!-- operation request element -->
<element name="New">
<complexType>
<sequence>
<element name="i" type="cd:StdRequest" minOccurs="0" maxOccurs="1" nillable="true"/>
</sequence>
</complexType>
</element>
<!-- operation response element -->
<element name="StdResult">
<complexType>
<sequence>
<element ref="cd:err" minOccurs="1" maxOccurs="1"/>
</sequence>
</complexType>
</element>
</schema>
</types>
<message name="NewRequest">
<part name="parameters" element="cd:New"/>
</message>
<message name="StdResult">
<part name="parameters" element="cd:StdResult"/>
</message>
<portType name="ServicePortType">
<operation name="New">
<documentation>Service definition of function cd__New</documentation>
<input message="tns:NewRequest"/>
<output message="tns:StdResult"/>
</operation>
</portType>
<binding name="Service" type="tns:ServicePortType">
<SOAP:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="New">
<SOAP:operation soapAction=""/>
<input>
<SOAP:body use="literal"/>
</input>
<output>
<SOAP:body use="literal"/>
</output>
</operation>
</binding>
<service name="Service">
<documentation>gSOAP 2.7.0d generated service definition</documentation>
<port name="Service" binding="tns:Service">
<SOAP:address location="http://localhost:80"/>
</port>
</service>
</definitions>



Reply via email to