return an array with SOAP Axis call...

A

Axel Burwitz

Hi,

sorry for boring with a very basic question, but I cannot solve it..

want get back an int array from my SOAP Axis web service. In the call, after
some testing , reading, trying, I have set for "setReturnType" now
"Constants.SOAP_ARRAY" (I am far from being sure...)

But when I start the call, it gets "java.lang.ClassCastException" !

Can anybody help me with a hint for the correct and appropriate definition ?

Thanks in advance,

Axel


.....
call.setTargetEndpointAddress( new java.net.URL(endpoint) );
call.setOperationName("distrowatchserverselectdb");
Integer movieid = new Integer(2);
call.addParameter("movieid",
org.apache.axis.Constants.XSD_INTEGER,
javax.xml.rpc.ParameterMode.IN);
call.setReturnType(Constants.SOAP_ARRAY);
int[] ret = (int[]) call.invoke( new Object[] {movieid});
System.out.println("Bin zur?ck");
ClientDistroWatch.dwstimmen=ret;
// } catch (Exception e) {
System.err.println(e.toString());
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top