title: Creating a SOAP using javax.xml.soap
body: <p>I have been trying to write a SOAP web service using  javax.xml.soap but the output I am getting is not as I am expecting.</p>
  
  <p>my expected output is as:</p>
  
  <pre><code>&lt;test:testment
      xmlns:test="http://www.shopper.com/schemas/CMS_Generic/testment_Request.xsd"
      xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" 
      xmlns:soap="http://www.w3.org/2003/05/soap-envelope"&gt;
      &lt;test:RequestHeader&gt;
          &lt;test:MessageId&gt;171004081257000_3106&lt;/test:MessageId&gt;
          &lt;test:MsgSource&gt;MUTUALIND&lt;/test:MsgSource&gt;
          &lt;test:ClientCode&gt;MUTUALIND&lt;/test:ClientCode&gt;
          &lt;test:BatchRefNmbr&gt;171004081257000_3106&lt;/test:BatchRefNmbr&gt;
  
      &lt;/test:RequestHeader&gt;
      &lt;test:InstrumentList&gt;
          &lt;test:instrument&gt;
              &lt;test:InstRefNo&gt;171004081257000_3106&lt;/test:InstRefNo&gt;
              &lt;test:MyProdCode&gt;NETtest&lt;/test:MyProdCode&gt;
              &lt;test:TxnAmnt&gt;99.5&lt;/test:TxnAmnt&gt;
              &lt;test:AccountNo&gt;650000173&lt;/test:AccountNo&gt;
              &lt;test:testmentDt&gt;2017-10-04&lt;/test:testmentDt&gt;
              &lt;test:RecBrCd&gt;BOFA0BG3978&lt;/test:RecBrCd&gt;
              &lt;test:BeneAcctNo&gt;1234569874&lt;/test:BeneAcctNo&gt;
              &lt;test:BeneName&gt;INDIA TEST TEST&lt;/test:BeneName&gt;
              &lt;test:BeneAddr1&gt;IND&lt;/test:BeneAddr1&gt;
              &lt;test:city&gt;IND&lt;/test:city&gt;
              &lt;test:InstDt&gt;2017-10-04&lt;/test:InstDt&gt;
              &lt;test:testmentDtl1&gt;Mumbai&lt;/test:testmentDtl1&gt;
              &lt;test:testmentDtl2&gt;UNITED KINGDOM&lt;/test:testmentDtl2&gt;
              &lt;test:EnrichmentSet&gt;
                  &lt;test:Enrichment&gt;TEST
                      CLIENT~SAVING~TEST~09582650000173~FAMILY_MAINTENANCE~1234569874
                  &lt;/test:Enrichment&gt;
              &lt;/test:EnrichmentSet&gt;
          &lt;/test:instrument&gt;
      &lt;/test:InstrumentList&gt;
  &lt;/test:testment&gt;
  </code></pre>