Hi there.
I was wondering if someone could provide me with an example of (or point
me in the direction of) a java client which calls a web service that
returns an array of a bean.
I'm using Axis 1.4 dated April 22, 2006 and have already researched this
question only to find the majority of the responses were related to
earlier releases.
The relevant portion of my client code is:
call.setOperationName( "getSites" );
call.setReturnType( XMLType.SOAP_ARRAY );
call.addParameter("tokenId", org.apache.axis.Constants.XSD_INT,
javax.xml.rpc.ParameterMode.IN);
call.addParameter("username", org.apache.axis.Constants.XSD_STRING,
javax.xml.rpc.ParameterMode.IN);
Object[] obj = (Object[]) call.invoke( new Object[] { tokenId, "test" }
);
I'm receiving the following exception:
org.xml.sax.SAXException: No deserializer for
{urn:DemandResponse}SiteDTO
I'm sure I'm missing something in the client but I don't know/understand
what it is.
I wrote the original interface and implementation and then used
Java2Wsdl and Wsdl2Java to generate the wsdl, server side code and wsdd.
Thanks,
Marc