title: How to remove a header element from a SOAP request before posting the message to server
body: <p>I have a SOAP request like below. Before sending the request to server, I want to remove "SessionType" and "SessionToken" from the SOAP Header.</p>
  
  <p>Please guide.</p>
  
  <pre><code>&lt;SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"&gt;
     &lt;SOAP-ENV:Header&gt;
        &lt;SessionType xmlns="http://siebel.com/webservices"&gt;Stateless&lt;/SessionType&gt;
        &lt;SessionToken xmlns="http://siebel.com/webservices"&gt;xkhdj&lt;/SessionToken&gt;
        &lt;UsernameToken xmlns="http://siebel.com/webservices"&gt;xyz&lt;/UsernameToken&gt;
        &lt;PasswordText xmlns="http://siebel.com/webservices"&gt;**********&lt;/PasswordText&gt;
     &lt;/SOAP-ENV:Header&gt;
     &lt;SOAP-ENV:Body&gt;
        &lt;GetCustomerPreference_Input xmlns="http://siebel.com/CustomUI"&gt;
           &lt;CustNumber&gt;FR7810&lt;/CustNumber&gt;
           &lt;Country&gt;France&lt;/Country&gt;
           &lt;LOB/&gt;
        &lt;/GetCustomerPreference_Input&gt;
     &lt;/SOAP-ENV:Body&gt;
  &lt;/SOAP-ENV:Envelope&gt;
  </code></pre>
  
  <p>Regards,
  Milan</p>