Thank you for your response. If I do exactly as you mention with my sample
xml. "return" should be positioned (itemIndex) 0 or 1 depending on
whitespace. I get a null pointer exception. So I took it a step further
and ran the below and get nothing.
SOAPBody sb2 = reply.getSOAPBody();
NodeList nl2 = sb2.getElementsByTagName("return");
System.out.println("NL2 Length is: " + nl2.getLength()); //returns 0
for(int i=0; i < nl2.getLength(); i++) {
if(nl2.item(i)!= null) //make sure it is not whitespace but never
makes it
in the for loop
System.out.println("Return tag text:" +
nl2.item(i).getTextContent());
}
This is all within Axis2 deployed in Tomcat 5.5.23 with jdk 1.5.0_11.
westpine wrote:
>
> I'm using this code. body is SOAPBody object.
>
> String name =
> body.getElementsByTagName("Name").item(itemIndex).getTextContent();
>
>
--
View this message in context:
http://www.nabble.com/AXIS2-with-SAAJ-tf4477773.html#a12778064
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]