title: Convert SOAP Response to JAVA Object
body: <p>I need to convert a soap response xml to a JAVA object to cater it to another service.
  SOAP response looks like</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"&gt;
     &lt;S:Body&gt;
        &lt;ns2:myResponse xmlns:ns2="http://impl.service.abc.com/"&gt;
           &lt;return&gt;
              &lt;response&gt;
                 &lt;timestamp&gt;11068446&lt;/timestamp&gt;
                 &lt;txnAmount&gt;1&lt;/txnAmount&gt;
                 &lt;userGuid&gt;11068446&lt;/userGuid&gt;
                 &lt;walletSystemTxnId&gt;123456789&lt;/walletSystemTxnId&gt;
              &lt;/response&gt;
              &lt;status&gt;SUCCESSS&lt;/status&gt;
              &lt;statusCode&gt;SUCCESS&lt;/statusCode&gt;
              &lt;statusMessage&gt;SUCCESS&lt;/statusMessage&gt;
           &lt;/return&gt;
        &lt;/ns2:myResponse&gt;
     &lt;/S:Body&gt;
  &lt;/S:Envelope&gt;
  </code></pre>
  
  <p>I tried lots f things to convert read it and convert it to my class instance.</p>
  
  <p><strong>How I am calling the soapservice</strong>.
  I am calling soapService which is using webService template of spring framework.
  code is </p>
  
  <pre><code>    SOAPConnectionFactory soapConnectionFactory = SOAPConnectionFactory.newInstance();
      SOAPConnection soapConnection = soapConnectionFactory.createConnection();
      //Send SOAP Message to SOAP Server
     SOAPMessage soapResponse = soapConnection.call(createSOAPRequest(soapWithdrawAction), soapEndpointUrl);
  </code></pre>
  
  <p>when I am trying to print the <code>soapResponse</code> I am getting, the xml which is posted in the very beginning of the question.
  Is there any way to achieve this?</p>