File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Web Services
Bookmark "Accessing a returned SOAP object body" Watch "Accessing a returned SOAP object body" New topic

Accessing a returned SOAP object body

g forte

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:

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.

I agree. Here's the link:
subject: Accessing a returned SOAP object body
It's not a secret anymore!