Amila,
I have attached a simple wsdl (test.wsdl) that I have tried also and got
the same result (TestServiceSkeleton.java). I have part elements as part of my
output messages, but in the generated code the method signatures are void. I
am using Apache axis2-1.1, and executed the following command to get the result:
WSDL2Java -uri test.wsdl -ss -sdThank you, Nate Douglas ----- Original Message ----- From: Amila Suriarachchi To: [email protected] ; Nate - Hotmail Sent: Wednesday, December 20, 2006 1:41 AM Subject: Re: WSDL2Java Issue On 12/19/06, Nate - Hotmail <[EMAIL PROTECTED]> wrote: When I execute the WSDL2Java command, I get the skeleton code, but the generated signatures are all void when they shouldn't be. Is this normal for the code generation, and I just change the signatures as I need them, no it should generate the code according to your messages defined in the wsdl. it is *void* if you have messages without any part elements as output messages. or should they have been correctly generated from the WSDL? without looking your wsdl I can not really answer this question. Can you please attach your wsdl or a simple wsdl which demonstrate your problem? Amila -- Amila Suriarachchi, Software Engineer, WSO2 Inc.
<?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://new.webservice.namespace" targetNamespace="http://new.webservice.namespace"> <wsdl:types> <xs:schema targetNamespace="http://new.webservice.namespace" elementFormDefault="qualified"> </xs:schema> </wsdl:types> <wsdl:message name="echoRequest"> <wsdl:part name="parameter" type="xs:string"/> </wsdl:message> <wsdl:message name="echoResponse"> <wsdl:part name="parameter" type="xs:string"/> </wsdl:message> <wsdl:message name="addRequest"> <wsdl:part name="operand1" type="xs:int"/> <wsdl:part name="operand2" type="xs:int"/> </wsdl:message> <wsdl:message name="addResponse"> <wsdl:part name="result" type="xs:int"/> </wsdl:message> <wsdl:portType name="TestPortType"> <wsdl:operation name="echo"> <wsdl:input message="tns:echoRequest"/> <wsdl:output message="tns:echoResponse"/> </wsdl:operation> <wsdl:operation name="add"> <wsdl:input message="tns:addRequest"/> <wsdl:output message="tns:addResponse"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="TestBinding" type="tns:TestPortType"> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="echo"> <soap:operation soapAction="urn:echo"/> <wsdl:input> <soap:body use="literal"/> </wsdl:input> <wsdl:output> <soap:body use="literal"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="add"> <soap:operation soapAction="urn:add"/> <wsdl:input> <soap:body use="literal"/> </wsdl:input> <wsdl:output> <soap:body use="literal"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="TestService"> <wsdl:port name="TestPort" binding="tns:TestBinding"> <soap:address location="localhost:80/purifile/services/Test"/> </wsdl:port> </wsdl:service> </wsdl:definitions>
TestServiceSkeleton.java
Description: Binary data
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
