Hi all,
I'm trying to parse a response to a SOAP request and am not quite sure how to do this. I see in all the examples on the web and in the books where the information being returned is a simple type or a complex type and you can use Response.getReturnValue() to access the data.
Either something like,
<SOAP-ENV:Body>
<stockquoteresponse>
<stockprice>123.45</stockprice>
</stockquoteresponse>
</SOAP-ENV:Body>
or
<SOAP-ENV:Body>
<stockquoteresponse>
<stock>
<tickersymbol>XYZ</tickersymbol>
<stockprice>123.45</stockprice>
</stock>
</stockquoteresponse>
</SOAP-ENV:Body>
In my case however i have multiple pieces of information coming back and I am not sure how to encapsulate it in an object and if that is not possible, how to read it. I am getting something like,
<SOAP-ENV:Body>
<stockquoteresponse>
<tickersymbol>XYZ</tickersymbol>
<stockprice>123.45</stockprice>
</stockquoteresponse>
</SOAP-ENV:Body>
Is it possible to get access to the
stockquoteresponse element and deserialize that into an object ? In the examples I have seen, it doesn't seem to be possible.
Thanks