Hi John, what you get from the call mySOAPEnv.getFirstBody().getChildElements().next() is of the type RPCElement. Call the getParam() methode on this object and you will get a vector of PRCParam. Finally call the getValue() method of RPCParam and you will get what you want. Regards Oliver
____________________________________________________________________
Oliver Adler, Senior Consultant
SYRACOM Systems AG - "The IT-Architects"
Otto-von-Guericke-Ring 15
D-65205 Wiesbaden
Tel +49 6122-9176-0
Fax +49 6122-9176-11
Mobil +49 175-1853998
E-Mail: [EMAIL PROTECTED]
<www.SYRACOM.de>
Ein Unternehmen der SYRACOM Gruppe - "The Business- & IT-Architects"
____________________________________________________________________
-----Urspr�ngliche Nachricht-----
Von: John Chen [mailto:[EMAIL PROTECTED]
Gesendet: Mi 05.03.2003 3.23 Uhr
An: [EMAIL PROTECTED]
Cc:
Betreff: Return Value in a SOAPEnvelope
How do I extract the return value from a SOAPEnvelope?
mySOAPEnv.getFirstBody().getChildElements().next().getValue()
I'm trying to get the value of the first Element in the Body, but getValue
will not work.
I get the response element:
<Result xsi:type="xsd:string"
xmlns:xsi="http//www.w3.org/2001/XMLSchema-instance">Success!</Result>
but I can't extract the value.
Also I tried getValueAsType and it just gave me
"http://www.w3.org/2001/XMLSchema:string"
Thanks!
John
<<winmail.dat>>
