title: Get the value from a SOAP message in Java
body: <p>I am getting a SOAP message as a string after making a call to the web service.
  </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" 
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
      &lt;soap:Body&gt;
          &lt;PassOracleXMLDataResponse xmlns="http://tempuri.org/"&gt;
              &lt;PassOracleXMLDataResult&gt;
                  &lt;gesystem xmlns=""&gt;
                      &lt;return_code&gt;0&lt;/return_code&gt;
                      &lt;message&gt;PRS User does not exists in GETS&lt;/message&gt;
                      &lt;invoiceid&gt;TESTADDTLINFO2&lt;/invoiceid&gt;
                      &lt;datetime&gt;Apr 17 2013  4:19PM&lt;/datetime&gt;
                  &lt;/gesystem&gt;
              &lt;/PassOracleXMLDataResult&gt;
          &lt;/PassOracleXMLDataResponse&gt;
      &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;
  </code></pre>
  
  <p>I need to retrieve the values  and  elements. When I tried to use a simple SAXBuilder to build a Document and traverse it, I got an exception after trying to getChild on "soap: Body"</p>
  
  <pre><code>getChild("soap:Body") - returns null.
  </code></pre>