How do I use Java to print XML without printing the SOAP envelope?

Hi there,
I have a Java class which uses WebServices to extract information.  I have my SOAP logging turned on so that in my log file I can see the SOAP envelope as well as the XML itself.  However, I really just want that log file to have only the XML so that I can then use that file as input into another class that will use xPath to parse the data.  If I turn off the SOAP logging, then I also lose the XML printout.  How can I just get the XML messages to print without all that SOAP before and after it?
Who is Participating?
Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
Simplest solution is to take care of stripping out this soap envelope in the other application where you wanted to use Xpath. In the way you have described about turning on SOAP Loagging looks like you don't have much control (code to modify) for doing any specific changes.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.