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 VinceK <ck...@hotmail.com> on 2007/02/27 02:18:59 UTC
Multiple Parameters Axis1 Server -> Axis2 Client
Hello,
I can't generate stub from AXIS2 WSDL2JAVA from the WSDL generated by this
service.
<service name="TestWebService" style="wrapped">
<requestFlow>
<handler type="auth"/>
</requestFlow>
<namespace>http://webservice.com/starws/services/transport/bindings</namespace>
<parameter name="className"
value="com.webservice.server.TestWebService"/>
<parameter name="allowedMethods" value="getTest"/>
</service>
This service descriptor generates this 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>
With this used WSDL2JAVA in AXIS2 and generated codes however I only has one
paramter.
What do I need to do? An example would be great. Thank you.
--
View this message in context: http://www.nabble.com/Multiple-Parameters-Axis1-Server--%3E-Axis2-Client-tf3297452.html#a9173205
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Multiple Parameters Axis1 Server -> Axis2 Client
Posted by Amila Suriarachchi <am...@gmail.com>.
> With this used WSDL2JAVA in AXIS2 and generated codes however I only has
> one
> paramter.
> What do I need to do? An example would be great. Thank you.
Well if you codegen without giving -uw always you get one parameter. I.e.
The wrapped request object.
try to use the -uw option then you will get a same method signature as your
implementation class.
try with a nightly build.
--
Amila Suriarachchi,
WSO2 Inc.