DeserializationExcpetion for types in the SOAP Response

2009-09-09 Thread Archu04

Hi,
I have a SOAP Response which was sent from the WS Server:
 http://schemas.xmlsoap.org/soap/envelope/";
xmlns:tem="http://tempuri.org/";>
   
- 
- 
-  
- 
  e061c6dd-d301-4c19-8735-7c2400bce536 
  2009-08-27T00:00:19 
  false 
-  
  e061c6dd-d301-4c19-8735-7c2400bce536 
  false 
  e061c6dd-d301-4c19-8735-7c2400bce536 
  e061c6dd-d301-4c19-8735-7c2400bce536 
-  
  400 
-  
  lkj 
  None Primary 
  0 
-  
 
e061c6dd-d301-4c19-8735-7c2400bce536 
-  
- 
-  
- 
  e061c6dd-d301-4c19-8735-7c2400bce536 
  2006-06-29T15:35:30 
  false 
-  
  false 
  e061c6dd-d301-4c19-8735-7c2400bce536 
  e061c6dd-d301-4c19-8735-7c2400bce536 
  e061c6dd-d301-4c19-8735-7c2400bce536 
  None Normal_User 
  false 
  
  
-  
- 
-  
  
 
e061c6dd-d301-4c19-8735-7c2400bce536 
  
  
  
  

I am getting the following StackTrace on trying to deserialize the response
using axis:

org.xml.sax.SAXException: Found character data inside an array element while
deserializing
at
org.apache.axis.encoding.ser.ArrayDeserializer.characters(ArrayDeserializer.java:502)
at
org.apache.axis.encoding.DeserializationContext.characters(DeserializationContext.java:966)
at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:177)
at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
at org.apache.axis.client.Call.invoke(Call.java:2467)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)

We believe that Deserialization error is thrown for any  element
type messages in the SOAP Response.

Please help in resolving this error.

Thanks in Advance,
Archana.
-- 
View this message in context: 
http://www.nabble.com/DeserializationExcpetion-for-%3Cxsd%3Alist%3E-types-in-the-SOAP-Response-tp2535p2535.html
Sent from the Axis - User mailing list archive at Nabble.com.



Deserialization error:org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.

2009-09-09 Thread Archu04

Hi,
On trying to generate Java from a SOAP Response, my code terminates with the
following stack trace:

10:33:01  [test1] CTGDIS495I handleException , callreply,
org.xml.sax.SAXException: SimpleDeserializer encountered a child element,
which is NOT expected, in something it was trying to deserialize. 
10:33:01  [test1] CTGDIS810E handleException - cannot handle exception ,
callreply 
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a
child element, which is NOT expected, in something it was trying to
deserialize.
 faultActor: 
 faultNode: 
 faultDetail: 
{http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException:
SimpleDeserializer encountered a child element, which is NOT expected, in
something it was trying to deserialize.
at
org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:147)
at
org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1037)
at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)

The parameters passed to getParams() is:
http://schemas.xmlsoap.org/soap/envelope/";
xmlns:sy="http://services.ws.itim.ibm.com";
xmlns:my="http://model.ws.itim.ibm.com";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
   
  
   

   
   
  Name
  
 
 ITEM
  
   

false  
Kevin Kovach
   
erglobalid=3282108447695803762,ou=0,ou=people,erglobalid=,ou=Motorists,o=MOTORISTS
Person
 
  
   


While parsing this SOAP Response, the SOAPBodyElement generated is:
http://services.ws.itim.ibm.com";>
   
http://model.ws.itim.ibm.com";>
   
   
  Name
  
 
 ITEM
  
   

http://model.ws.itim.ibm.com";>false  
http://model.ws.itim.ibm.com";>Kevin
Kovach
http://model.ws.itim.ibm.com";>erglobalid=3282108447695803762,ou=0,ou=people,erglobalid=,ou=Motorists,o=MOTORISTS
http://model.ws.itim.ibm.com";>Person
 
  

and it fails with the Deserialization error at the point:
Name


Could anyone help in understanding why? Is there something wrong with the
SOAP Response xmlString? Please help in fixing this. Its really urgent!
Thanks in Advance.

Archana.
-- 
View this message in context: 
http://www.nabble.com/Deserialization-error%3Aorg.xml.sax.SAXException%3A-SimpleDeserializer-encountered-a-child-element%2C-which-is-NOT-expected%2C-in-something-it-was-trying-to-deserialize.-tp25377515p25377515.html
Sent from the Axis - User mailing list archive at Nabble.com.