axis and complex type help

A

Andrea

Hi, I have a problem.
I make a webservice invocation with axis:

Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress( new java.net.URL(URL) );
call.setOperationName(new QName(URI, methodName) );
call.setUsername( l_userName ) ;
call.setPassword( l_password ) ;
call.addParameter("FLATPO",
org.apache.axis.Constants.XSD_STRING,
javax.xml.rpc.ParameterMode.IN);
call.setReturnType(org.apache.axis.Constants.SOAP_ARRAY);
ret = (String) call.invoke( new Object[] { FlatPO } );
System.out.println("Debug call.invoke" + ret );

this web service return me a soap response like this:

<SOAP-ENV:Body>
<ser-root:doGetStockVendorListResponse
xmlns:ser-root="http://www.medicalplaza.it/hub" SOAP-ENC:root="1">
<XVENDOR_LIST xsi:type="SOAP-ENC:Array"
SOAP-ENC:arrayType="webM:XVENDOR_LISTArrayItem[2]">
<item xsi:type="webM:XVENDOR_LISTArrayItem">
<STCEG_TO xsi:type="xsd:string">00735390155</STCEG_TO>
</item>
<item xsi:type="webM:XVENDOR_LISTArrayItem">
<STCEG_TO xsi:type="xsd:string">IT03264970967</STCEG_TO>
</item>
</XVENDOR_LIST>
</ser-root:doGetStockVendorListResponse>
</SOAP-ENV:Body>


whith an array that contains 2 string.
My client axis response that:
org.xml.sax.SAXException: No deserializer defined for array type
{http://www.webMethods.com/noNamespace/}XVENDOR_LISTArrayItem

If i set like returntype XSD_STRING it response Bad Type

What can i do???
Help me please

Thanks
Andrew
 

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,776
Messages
2,569,603
Members
45,189
Latest member
CryptoTaxSoftware

Latest Threads

Top