Hello

I use a WSDL2Java generated Client for a webservice.

I succeed in requesting a service, but my client can not parse the response. I get a Exception:

org.xml.sax.SAXException: Invalid element in optel.ws.test.schemas.aaa.User - user
at org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:260)
at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:963)
at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:198)
at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:722)
at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:233)
at org.apache.axis.message.RPCElement.getParams(RPCElement.java:347)
at org.apache.axis.client.Call.invoke(Call.java:2272)
at org.apache.axis.client.Call.invoke(Call.java:2171)
at org.apache.axis.client.Call.invoke(Call.java:1691)
....


Exception is thrown when deserializing <ns6:articel>, see below!

What could be wrong?

Tahnks Wolfram



<SOAP-ENV:Envelope ....
<SOAP-ENV:Header>
...
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<ns3:requestFoo xmlns:ns3="http://optel.ws.test/aaa";>
<result xsi:type="ns4:response" xmlns:ns4="http://optel.ws.test/schemas/v01/testws/";>
<result xsi:type="xsd:string">OK
</result>
</result>
<order xsi:type="ns6:articel" xmlns:ns6="http://optel.ws.test/schemas/v01/testws/";> <artType xsi:type="ns6:artName">
<name xsi:type="xsd:string">coffee</name>
</artType>
<articels SOAP-ENC:arrayType="ns6:articel[1]">
<ns6:articel> <!-- !!!!!!!!!!!!!!! -->
<artId xsi:type="ns6:artId">
<msisdn xsi:type="xsd:string">431752764371</msisdn>
</artId>
</ns6:articel>
</articels>
</order>
</ns3:fullRequestResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>




Reply via email to