aspose file tools*
The moose likes Web Services and the fly likes Accessing a returned SOAP object body Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Accessing a returned SOAP object body" Watch "Accessing a returned SOAP object body" New topic
Author

Accessing a returned SOAP object body

g forte
Greenhorn

Joined: Aug 28, 2003
Posts: 25
Hello all,
I have used SOAP to return an object from a web service. The call is being made using the classes generate from wsdl2java in conjunction with some of the Apache Axis libraries (this wsdl2java lib is integrated as a plug-in with Eclipse).


The System.out.println returns the following:
[Lorg.apache.axis.message.MessageElement;@1570945

Now if I analyze the method above in Eclipse's "inspect" debugger, I can view the resulting XML(message Element) which consists of a two element array�the first contains the XML schema and the second contains the XML data.

What I need to do is access the returned SOAP object(message Element).
How can I expose the MessageElement information that can be seen while debugging? I cannot find a way to access the returned data even though I have confirmed with the debugger that a complete SOAP response was successfully received?.

Any code examples or links to a good example is appreciated.

TIA!
 
wood burning stoves
 
subject: Accessing a returned SOAP object body