title: Java Generate SOAP Envelope
body: <p>i have the following method :</p>
  
  <p>String[] getEmployeeDetails ( int employeeNumber );
   The assosiate request look like this :</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="no" ?&gt;
    &lt;SOAP-ENV:Envelope
     SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
     xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
     xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
     xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
     xmlns:xsd="http://www.w3.org/1999/XMLSchema"&gt;
   &lt;SOAP-ENV:Body&gt;
    &lt;ns1:getEmployeeDetails
     xmlns:ns1="urn:MySoapServices"&gt;
     &lt;param1 xsi:type="xsd:int"&gt;1016577&lt;/param1&gt;
    &lt;/ns1:getEmployeeDetails&gt;
   &lt;/SOAP-ENV:Body&gt;
    &lt;/SOAP-ENV:Envelope&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>this example come from this link [<a href="http://www.soapuser.com/basics3.html][1]" rel="noreferrer">http://www.soapuser.com/basics3.html][1]</a></p>
  
  <p>I don't understand how they do to generate it programtically with java.
  Please help !</p>