How to convert object of type SOAPMessage to string?
<p>I have written following code to implement SAAJ.</p>

<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>SOAPConnectionFactory soapConnectionFactory = SOAPConnectionFactory.newInstance();
SOAPConnection soapConnection = soapConnectionFactory.createConnection();

// Send SOAP Message to SOAP Server
String url = "http://xxx.xxx.x.xx:8080/IssuerWebService";
soapResponse = soapConnection.call(createSOAPRequest(conf.TOKEN,conf.VERSION,
                                                     conf.CALLER_ID,conf.USER_ID,
                                                     conf.PASSWORD,strXML), url);

try{             
    ByteArrayOutputStream out = new ByteArrayOutputStream();
    soapResponse.writeTo(out);
    String response= out.toString();</code></pre>
</div>
</div>
</p>

<p>But the variable response contains  </p>

<pre><code>com.sun.org.apache.xerces.internal.dom.DeepNodeListImpl@7096faf1
</code></pre>

<p>Code for  <code>createSOAPRequest()</code> is given below</p>

<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>private static SOAPMessage createSOAPRequest() throws Exception {
        MessageFactory messageFactory = MessageFactory.newInstance();
        SOAPMessage soapMessage = messageFactory.createMessage();
        SOAPPart soapPart = soapMessage.getSOAPPart();

        String headerNameSpace = "https://paysecure/merchant.soap.header/";
        String bodyNameSpace = "https://paysecure/merchant.soap/";
        
        

        // SOAP Envelope
        SOAPEnvelope envelope = soapPart.getEnvelope();
        envelope.addNamespaceDeclaration("mer", headerNameSpace);
        envelope.addNamespaceDeclaration("mer1", bodyNameSpace);

        /*
        Constructed SOAP Request Message:
        &lt;?xml version="1.0" encoding="UTF-8"?&gt;
   &lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:mer="https://paysecure/merchant.soap.header/" xmlns:mer1="https://paysecure/merchant.soap/"&gt;
      &lt;soapenv:Header&gt;
         &lt;RequestorCredentials xmlns="https://paysecure/merchant.soap.header/"&gt;
            &lt;Token&gt;AF165FBD-4E85-4c66-BEB1-C54DC16CD48B&lt;/Token&gt;
            &lt;Version&gt;1.0.0.0&lt;/Version&gt;
            &lt;CallerID&gt;720203&lt;/CallerID&gt;
            &lt;UserCredentials&gt;
               &lt;UserID&gt;test@acculynk.com&lt;/UserID&gt;
               &lt;Password&gt;Password!1&lt;/Password&gt;
            &lt;/UserCredentials&gt;
         &lt;/RequestorCredentials&gt;
      &lt;/soapenv:Header&gt;
      &lt;soapenv:Body&gt;
         &lt;CallPaySecure xmlns="https://paysecure/merchant.soap/"&gt;
            &lt;strCommand&gt;Issuer_initiate&lt;/strCommand&gt;
            &lt;strXML&gt;&amp;lt;paysecure&amp;gt;&amp;lt;partner_id&amp;gt;ACCUTEST&amp;lt;/partner_id&amp;gt;&amp;lt;card_no&amp;gt;6073849900004960&amp;lt;/card_no&amp;gt;&amp;lt;auth_method&amp;gt;OTP&amp;lt;/auth_method&amp;gt;&amp;lt;language_code&amp;gt;en&amp;lt;/language_code&amp;gt;&amp;lt;/paysecure&amp;gt;&lt;/strXML&gt;
         &lt;/CallPaySecure&gt;
      &lt;/soapenv:Body&gt;
   &lt;/soapenv:Envelope&gt;
         */
        
        // Soap Header
        SOAPHeader soapHeader = envelope.getHeader();
        SOAPElement RequestorCredentials = soapHeader.addChildElement("RequestorCredentials", "mer");
        SOAPElement Token = RequestorCredentials.addChildElement("Token");
        Token.addTextNode("AF165FBD-4E85-4c66-BEB1-C54DC16CD48B");
        SOAPElement Version = RequestorCredentials.addChildElement("Version");
        Version.addTextNode("1.0.0.0");
        SOAPElement CallerID = RequestorCredentials.addChildElement("CallerID");
        CallerID.addTextNode("720203");
        SOAPElement UserCredentials = RequestorCredentials.addChildElement("UserCredentials");
        SOAPElement UserID = UserCredentials.addChildElement("UserID");
        UserID.addTextNode("test@acculynk.com");
        SOAPElement Password = UserCredentials.addChildElement("Password");
        Password.addTextNode("Password!1");
        
        // SOAP Body
        SOAPBody soapBody = envelope.getBody();
        SOAPElement CallPaySecure = soapBody.addChildElement("CallPaySecure", "mer1");
        SOAPElement strCommand = CallPaySecure.addChildElement("strCommand");
        strCommand.addTextNode("Issuer_Initiate");
        SOAPElement strXML = CallPaySecure.addChildElement("strXML");
        strXML.addTextNode("&amp;lt;paysecure&amp;gt;&amp;lt;card_no&amp;gt;60738499004978&amp;lt;/card_no&amp;gt; &amp;lt;card_exp_date&amp;gt;122014&amp;lt;/card_exp_date&amp;gt;&amp;lt;card_holder_status&amp;gt &amp;lt;/card_holder_status&amp;gt;&amp;lt;cvd2&amp;gt;0320&amp;lt;/cvd2&amp;gt;&amp;lt;language_code&amp;gt;en&amp;lt;/language_code&amp;gt; &amp;lt;tran_id&amp;gt;000000000000025236 &amp;lt;/tran_id&amp;gt;&amp;lt;/paysecure&amp;gt;");

        MimeHeaders headers = soapMessage.getMimeHeaders();
        headers.addHeader("SOAPAction", headerNameSpace  + "CallPaySecure");

        soapMessage.saveChanges();       

        return soapMessage;
    }</code></pre>
</div>
</div>
</p>

<p>How can I get the elements in the response?</p>