title: How to convert a string to a SOAPMessage in Java?
body: <p>I wonder is there any way to convert a string to <em>SOAPMessage</em>?</p>
  <p>Let me say I have a string as follows:</p>
  <pre><code>String send = &quot;&lt;soap:Envelope xmlns:mrns0=\&quot;http://sdp.SOMETHING.com/mapping/TSO\&quot; xmlns:sdp=\&quot;http://sdp.SOMETHING.com.tr/mapping/generated\&quot; xmlns:soap=\&quot;http://schemas.xmlsoap.org/soap/envelope/\&quot; xmlns:xs=\&quot;http://www.w3.org/2001/XMLSchema\&quot;&gt;&quot;
          + &quot;&lt;soap:Header&gt;&quot;
          + &quot;&lt;sdp:token&gt;&quot;
          + &quot;&lt;sdp:sessionId&gt;&quot; + sessionId + &quot;&lt;/sdp:sessionId&gt;&quot;
          + &quot;&lt;/sdp:token&gt;&quot;
          + &quot;&lt;sdp:transaction-list&gt;&quot;
          + &quot;&lt;sdp:transaction-id&gt;&quot; + 11 + &quot;&lt;/sdp:transaction-id&gt;&quot;
          + &quot;&lt;/sdp:transaction-list&gt;&quot;
          + &quot;&lt;/soap:Header&gt;&quot;
          + &quot;&lt;soap:Body&gt;&quot;
          + &quot;&lt;sdp:SendSMSInput&gt;&quot;
          + &quot;&lt;sdp:EXPIRY_DATE&gt;&quot; + extime + &quot;&lt;/sdp:EXPIRY_DATE&gt;&quot;
          + &quot;&lt;sdp:MESSAGE_CLASS&gt;0&lt;/sdp:MESSAGE_CLASS&gt;&quot;
          + &quot;&lt;sdp:S_DATE&gt;&quot; + time + &quot;&lt;/sdp:S_DATE&gt;&quot;
          + &quot;&lt;sdp:SHORT_NUMBER&gt;1905&lt;/sdp:SHORT_NUMBER&gt;&quot;
          + &quot;&lt;sdp:SRC_MSISDN&gt;&quot; + numSend + &quot;&lt;/sdp:SRC_MSISDN&gt;&quot;
          + &quot;&lt;sdp:TO_RECEIVERS&gt;&quot;
          + &quot;&lt;sdp:msisdn&gt;&quot; + numSend + &quot;&lt;/sdp:msisdn&gt;&quot;
          + &quot;&lt;/sdp:TO_RECEIVERS&gt;&quot;
          + &quot;&lt;sdp:MESSAGE_BODY&gt;&quot;
          + &quot;&lt;sdp:message&gt;Message body here.&lt;/sdp:message&gt;&quot;
          + &quot;&lt;/sdp:MESSAGE_BODY&gt;&quot;
          + &quot;&lt;/sdp:SendSMSInput&gt;&quot;
          + &quot;&lt;/soap:Body&gt;&quot;
          + &quot;&lt;/soap:Envelope&gt;&quot;;
  </code></pre>
  <p>How do I convert the string?</p>