axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From (John Chen)
Subject RE: Return Value in a SOAPEnvelope
Date Wed, 05 Mar 2003 18:42:44 GMT
Sorry for all the messages, but I finally got it to work in Java.

You call getObjectValue or getValueAsType. However, these will not work in 


At 10:30 AM 3/5/2003 -0800, you wrote:
>Okay, I tried it in Java and I just keep getting null. I tried casting it 
>as an RPCElement, but I don't think it is one. Any other Ideas?
>At 07:06 AM 3/5/2003 -0800, you wrote:
>>I think you need to cast the result of next() to MessageElement:
>>MessageElement elem = mySOAPENv.getFirstBody().getChildElements().next();
>>String value = elem.getValue();
>>-----Original Message-----
>>Sent: Tuesday, March 04, 2003 7:23 PM
>>Subject: Return Value in a SOAPEnvelope
>>How do I extract the return value from a SOAPEnvelope?
>>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"
>>but I can't extract the value.
>>Also I tried getValueAsType and it just gave me

>>Notice: This email transmission and/or the attachments accompanying it 
>>may contain confidential information belonging to Merant. The information 
>>is only for the use of the intended recipient. If you have received this 
>>transmission in error, please notify the sender immediately by reply 
>>email, and then destroy all copies of the transmission.

View raw message