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
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