title: How can I edit the SOAP envelope and header with Perl's SOAP::Lite?
body: <p>I'm trying to modify the soapenv:Header to include addressing in my soap request</p>
  
  <pre><code>my $header=SOAP::Header-&gt;name("Header")-&gt;prefix("soap")-&gt;uri("http://www.w3.org/2005/08/addressing");
  </code></pre>
  
  <p>When I send the request:</p>
  
  <pre><code>print $soap-&gt;call($header, $security-&gt;value(\$userToken, $action, $message))-&gt;result; 
  </code></pre>
  
  <p>I receive the following...</p>
  
  <pre><code>&lt;"soap:Header soap:Header xmlns:soap="http://www.w3.org/2005/08/addressing" /&gt;
  </code></pre>
  
  <p>I need to try and override the original <code>&lt;soap:Header&gt;</code> I need to do the same for the <code>&lt;soap:Envelope&gt;</code></p>
  
  <p>Would be greatly appreciated if someone could help out :-)</p>