axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick van Kann" <>
Subject Can Axis support "one-way" operations?
Date Mon, 21 Mar 2005 14:20:30 GMT
What do I need to do generate one-way webservice operations using Axis and WSDL2Java (and vice

If I try to generate client and server stubs from a WSDL that contains a portType with the
following "one-way" operation definition:

<wsdl:operation name="setOffender">
    <wsdl:input message="impl:setOffenderRequest" name="setOffenderRequest"/>

I get an exception from WSDL2Java
No 'message' attribute in <input> for operation 'setOffender' - which I presume is really
telling me about the lack of <output>. If I put an output message everything works fine,
except my business logic interface then has a return type of Object where in fact I want it
to be void.

Going the other way using Java2WSDL shows a similar problem - methods in the interface marked
void still have an output message in the generated WSDL. 

Thanks in advance,


View raw message