Attaching the wsdl used for creating artifacts with WSDL2Java Jaya
On 7/28/05, jayachandra <[EMAIL PROTECTED]> wrote: > Hi there, > I planned to test a stub based style of invocation with this wsdl > [attached below- SimpleTest.wsdl]. > Its the wsdl for a webservice which hosts a method of the signature > public String echoString(String inputString); > I started with wsdl2java to generate stubs for me. I then set out to > write a test client (this was lacking from wsdl2java artifacts that > got generated) that would just assume as if it was invoking a local > method named echoString on the stub. Strangely the method signature of > echoString(..) in the generated stub is seen to expect an XMLBeans > specific EchoStringDocument kind of object as its input parameter. > This makes us think that data binding is not facilitated to the user > fully. User shouldn't have to bore the onus of creating an > EchoStringDocument object and pass it as parameter to the stub method, > at least when he is using the stub based invocation, isn't it? Is this > feature on our wish list or am I missing something!?! > > Thank you > Jayachandra > -- > -- Jaya > -- -- Jaya
<?xml version="1.0"?> <definitions name="SimpleTest" targetNamespace="http://SimpleTest.org/" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://SimpleTest.org/" xmlns:s="http://SimpleTest.org/xsd" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> <types> <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://SimpleTest.org/xsd"> <element name="echoString"> <complexType> <sequence> <element name="inputString" type="xsd:string" nillable="true"/> </sequence> </complexType> </element> <element name="StringResponseName"> <complexType> <sequence> <element name="responseString" type="xsd:string" nillable="true"/> </sequence> </complexType> </element> </schema> </types> <message name="echoString"> <part name="body" element="s:echoString"/> </message> <message name="echoStringResponse"> <part name="return" element="s:StringResponseName"/> </message> <portType name="SimpleTest"> <operation name="echoString" parameterOrder="body" > <input message="tns:echoString"/> <output message="tns:echoStringResponse"/> </operation> </portType> <binding name="SimpleTestBinding" type="tns:SimpleTest"> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> <operation name="echoString"> <soap:operation soapAction="http://SimpleTest.org/"/> <input> <soap:body use="literal"/> </input> <output> <soap:body use="literal"/> </output> </operation> </binding> <service name="SimpleTestService"> <port name="SimpleTestPort" binding="tns:SimpleTestBinding"> <soap:address location="http://localhost:8080/axis/services/SimpleTestPort"/> </port> </service> </definitions>