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

Posted on 2008-11-06
Last Modified: 2013-11-18
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?
Question by:spoolofdesign
    1 Comment
    LVL 23

    Accepted Solution

    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.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Suggested Solutions

    Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
    Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
    Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now