I'm using AXIS2 and I've used WSDL2JAVA to generate code. However, a
parameter is missing.
Service Implementation :
public String getTest(String in1, String in2) {
System.out.println(in1);
System.out.println(in2);
//String[][] sa = {{"World"},{"I am here"}};
String sa = "world";
return sa;
}
WSDL file :
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
targetNamespace="http://webservice.udcnet.com/starws/services/transport/bindings"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://webservice.udcnet.com/starws/services/transport/bindings"
xmlns:intf="http://webservice.udcnet.com/starws/services/transport/bindings"
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.3
Built on Oct 05, 2005 (05:23:37 EDT)-->
<wsdl:types>
<schema elementFormDefault="qualified"
targetNamespace="http://webservice.udcnet.com/starws/services/transport/bindings"
xmlns="http://www.w3.org/2001/XMLSchema">
<element name="getTest">
<complexType>
<sequence>
<element name="in1" type="xsd:string"/>
<element name="in2" type="xsd:string"/>
</sequence>
</complexType>
</element>
<element name="getTestResponse">
<complexType>
<sequence>
<element name="getTestReturn" type="xsd:string"/>
</sequence>
</complexType>
</element>
</schema>
</wsdl:types>
<wsdl:message name="getTestRequest">
<wsdl:part element="impl:getTest" name="parameters"/>
</wsdl:message>
<wsdl:message name="getTestResponse">
<wsdl:part element="impl:getTestResponse" name="parameters"/>
</wsdl:message>
<wsdl:portType name="TestWebService">
<wsdl:operation name="getTest">
<wsdl:input message="impl:getTestRequest" name="getTestRequest"/>
<wsdl:output message="impl:getTestResponse"
name="getTestResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="TestWebServiceSoapBinding"
type="impl:TestWebService">
<wsdlsoap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="getTest">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="getTestRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="getTestResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="TestWebServiceService">
<wsdl:port binding="impl:TestWebServiceSoapBinding"
name="TestWebService">
<wsdlsoap:address
location="http://localhost:8080/starws/services/TestWebService"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
What can I do to fix this problem?
Am I doing something wrong?
--
View this message in context:
http://www.nabble.com/WSDL2JAVA-creates-missing-parameter-tf3298319.html#a9175258
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]