You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by xu cai <je...@gmail.com> on 2006/07/19 08:08:41 UTC
Can't generate java classes from this WSDL file.
Hi Axis-users.
I think a Request.java class should be generated from following wsdl
file. The Request.java should be one of the input parameter to the web
service port. but no Request.java is not generated.
I run the wsdl2java and the interface looks like:
public com.jab.soap.intf.Reply request(com.jab.soap.intf.Req
_Entry_Type[] in0, java.lang.String in1) throws java.rmi.RemoteException,
com.jab.soap.intf.SoapException;
how to solve this problem ?
thanks
-Jeffrey
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://www.xxx.com/ufts/i01"xmlns:apachesoap=
"http://xml.apache.org/xml-soap"
xmlns:impl="http://www.xxx.com/ufts/i01"xmlns:intf=
"http://www.xxx.com/ufts/i01" xmlns:soapenc="
http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="
http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="
http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="
http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.2.1
Built on Jun 14, 2005 (09:15:57 EDT)-->
<wsdl:types>
<schema targetNamespace="http://www.xxx.com/ufts/i01" xmlns="
http://www.w3.org/2001/XMLSchema">
<import namespace="http://xml.apache.org/xml-soap"/>
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="Req_Entry_Type">
<attribute name="key" use="required" type="soapenc:string"/>
<attribute name="value" use="required" type="soapenc:string"/>
</complexType>
<complexType name="Request">
<sequence>
<element name="entry" maxOccurs="unbounded" type=
"impl:Req_Entry_Type"/>
</sequence>
<attribute name="noun" use="required" type="soapenc:string"/>
<attribute name="verb" use="required" type="soapenc:string"/>
</complexType>
<complexType name="Reply">
<sequence>
<element name="Status" type="xsd:boolean"/>
<element name="Reason" nillable="true" type="soapenc:string"/>
<element name="Size" type="xsd:int"/>
<element name="AbsoluteSize" type="xsd:int"/>
<element name="StartRow" type="xsd:int"/>
</sequence>
</complexType>
<complexType name="SoapException">
<sequence>
<element name="error_code" type="xsd:int"/>
<element name="error_string" nillable="true" type="soapenc:string"/>
</sequence>
</complexType>
</schema>
<schema targetNamespace="http://xml.apache.org/xml-soap" xmlns="
http://www.w3.org/2001/XMLSchema">
<import namespace="http://www.xxx.com/ufts/i01"/>
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="Vector">
<sequence>
<element maxOccurs="unbounded" minOccurs="0" name="item" type=
"xsd:anyType"/>
</sequence>
</complexType>
</schema>
</wsdl:types>
<wsdl:message name="requestResponse">
<wsdl:part name="requestReturn" type="impl:Reply"/>
</wsdl:message>
<wsdl:message name="requestRequest">
<wsdl:part name="in0" type="impl:Request"/>
<wsdl:part name="in1" type="soapenc:string"/>
</wsdl:message>
<wsdl:message name="SoapException">
<wsdl:part name="fault" type="impl:SoapException"/>
</wsdl:message>
<wsdl:portType name="JabOperations">
<wsdl:operation name="request" parameterOrder="in0 in1">
<wsdl:input message="impl:requestRequest" name="requestRequest"/>
<wsdl:output message="impl:requestResponse" name="requestResponse"/
>
<wsdl:fault message="impl:SoapException" name="SoapException"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="uftsSoapBinding" type="impl:JabOperations">
<wsdlsoap:binding style="rpc" transport="
http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="request">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="requestRequest">
<wsdlsoap:body encodingStyle="
http://schemas.xmlsoap.org/soap/encoding/" namespace="
http://www.xxx.com/ufts/i01" use="encoded"/>
</wsdl:input>
<wsdl:output name="requestResponse">
<wsdlsoap:body encodingStyle="
http://schemas.xmlsoap.org/soap/encoding/" namespace="
http://www.xxx.com/ufts/i01" use="encoded"/>
</wsdl:output>
<wsdl:fault name="SoapException">
<wsdlsoap:fault encodingStyle="
http://schemas.xmlsoap.org/soap/encoding/" name="SoapException" namespace="
http://www.xxx.com/ufts/i01" use="encoded"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="JabOperationsService">
<wsdl:port binding="impl:uftsSoapBinding" name="ufts">
<wsdlsoap:address location="http://localhost/axis/services/ufts"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>