title: Send Soap request with Java
body: <p>I never used Soap.
  <a href="https://stackoverflow.com/questions/19291283/soap-request-to-webservice-with-java?utm_medium=organic&amp;utm_source=google_rich_qa&amp;utm_campaign=google_rich_qa">I searched and found some examples</a></p>
  
  <p>My goal is to send like this Soap request</p>
  
  <pre><code>&lt;soapenv:Envelope 
   xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
   xmlns:tem="http://tempuri.org/"&gt;
  &lt;soapenv:Header/&gt;
  &lt;soapenv:Body&gt;
    &lt;tem:pay&gt;
       &lt;tem:merchantId&gt;7507231&lt;/tem:merchantId&gt;
       &lt;tem:branch&gt;Licensed Branch Name&lt;/tem:branch&gt;
       &lt;tem:alias&gt;Service alias Name&lt;/tem:alias&gt;
       &lt;tem:paymentId&gt;merchants payment idetificator&lt;/tem:paymentId&gt;
       &lt;tem:data&gt;
          &lt;tem:param&gt;
             &lt;tem:key&gt;account&lt;/tem:key&gt;
             &lt;tem:value&gt;account cridentials&lt;/tem:value&gt;
          &lt;/tem:param&gt;
       &lt;/tem:data&gt;
       &lt;tem:hash&gt;?&lt;/tem:hash&gt;
     &lt;/tem:pay&gt;
   &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <p>Can anyone tell me how I can send like this Soap request? or give me a examples or tutorials to send a soap like this.
  Thanks everyone</p>