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:
<soapenv:Envelope xmlns:soapenv="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";>
   <soapenv:Body>
      <sy:getPrincipalPersonResponse>
         <sy:getPrincipalPersonReturn>  
                <my:attributes>
               <!--Zero or more repetitions:-->
               <sy:item>
                  <sy:name>Name</sy:name>
                  <sy:values>
                     <!--Zero or more repetitions:-->
                     <sy:item>ITEM</sy:item>
                  </sy:values>
                                   </sy:item>
            </my:attributes>
            <my:select>false</my:select>  
            <my:name>Kevin Kovach</my:name>
           
<my:itimDN>erglobalid=3282108447695803762,ou=0,ou=people,erglobalid=00000000000000000000,ou=Motorists,o=MOTORISTS</my:itimDN>
            <my:profileName>Person</my:profileName>
         </sy:getPrincipalPersonReturn>
      </sy:getPrincipalPersonResponse>
   </soapenv:Body>
</soapenv:Envelope>

While parsing this SOAP Response, the SOAPBodyElement generated is:
<ns1:getPrincipalPersonResponse xmlns:ns1="http://services.ws.itim.ibm.com";>
         <ns1:getPrincipalPersonReturn>  
                <ns2:attributes xmlns:ns2="http://model.ws.itim.ibm.com";>
               <!--Zero or more repetitions:-->
               <ns1:item>
                  <ns1:name>Name</ns1:name>
                  <ns1:values>
                     <!--Zero or more repetitions:-->
                     <ns1:item>ITEM</ns1:item>
                  </ns1:values>
                                   </ns1:item>
            </ns2:attributes>
            <ns3:select
xmlns:ns3="http://model.ws.itim.ibm.com";>false</ns3:select>  
            <ns4:name xmlns:ns4="http://model.ws.itim.ibm.com";>Kevin
Kovach</ns4:name>
            <ns5:itimDN
xmlns:ns5="http://model.ws.itim.ibm.com";>erglobalid=3282108447695803762,ou=0,ou=people,erglobalid=00000000000000000000,ou=Motorists,o=MOTORISTS</ns5:itimDN>
            <ns6:profileName
xmlns:ns6="http://model.ws.itim.ibm.com";>Person</ns6:profileName>
         </ns1:getPrincipalPersonReturn>
      </ns1:getPrincipalPersonResponse>

and it fails with the Deserialization error at the point:
<ns1:name>Name</ns1: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.

Reply via email to