>Have a look a the Message sample in the distribution.
>Sylvain.

The Message sample uses Messages and not RPC as far as I can see from the
deploy file.
I'd prefer RPC.

I actually got the return of a String array working.The trick was obviously
to use this ReturnType:
call.setReturnType(new QName(..., "ArrayOf_SOAP-ENC_string"));

Trying to return a Vector was no success however. I used Axis' Java2WSDL
and WSDL2Java tools to generate the Java code.

The setReturnType call I get generated is this:

call.setReturnType(new QName("http://xml.apache.org/xml-soap";, "Vector"));
but the return statement:
. . .
Object resp = call.invoke(new Object[] {in0});
return (java.util.Vector) resp;
. . .
fails with

java.lang.ClassCastException: [Ljava.lang.Object;
at
SAS.ArrayReturnerSoapBindingStub.getVector(ArrayReturnerSoapBindingStub.java:148)

Ani idea about what could be wrong?


Reply via email to