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 Steve Carton <st...@retrievalsystems.com> on 2004/08/31 22:39:27 UTC

Java services returning void -- how to?

I have a web service (JAVA class) with a return type of void. It also
has an input parameter of type String.

On the client side, I set the in parameter with

call.addParameter("id", XMLType.XSD_STRING, ParameterMode.IN);

But I get 

 - No returnType was specified to the Call object!  You must call
setReturnType() if you have called addParameter().

I also tried setting the return type to AXIS_VOID, and to null and
setting the return class to Void.Type.  I get different errors, but none
of these work.  How am I supposed to be doing this?

Steve