title: how to read http response soap headers from web service response in proxy class
body: <p>I'm having some problems with one webservice that i'm working with. I generated a proxy class with wsdl.exe that comes with .net framework. But that webservice return a header that isnt not mapped by the wsdl. I must map the header sop because it contains some properties that i have to read and work with. how can i read the soap's header collection?</p>
  
  <p>Ex.:</p>
  
  <pre><code>&lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;
     &lt;soap:Header xmlns="http://xml.amadeus.com/ws/2009/01/WBS_Session-2.0.xsd"&gt;
        &lt;Session&gt;
           &lt;SessionId&gt;545784545&lt;/SessionId&gt;
           &lt;SequenceNumber&gt;1&lt;/SequenceNumber&gt;
           &lt;SecurityToken&gt;asd7a87sda89sd45as4d5a4&lt;/SecurityToken&gt;
        &lt;/Session&gt;
     &lt;/soap:Header&gt;
     &lt;soap:Body&gt;
        &lt;TAM_Altea_Seguranca_AutenticarRS xmlns="http://xml.amadeus.com/2009/04/TAM/TAM_Altea_Seguranca_AutenticarRS_2.0"&gt;
           &lt;statusDoProcesso&gt;
              &lt;codigoDoStatus&gt;P&lt;/codigoDoStatus&gt;
           &lt;/statusDoProcesso&gt;
        &lt;/TAM_Altea_Seguranca_AutenticarRS&gt;
     &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;
  </code></pre>
  
  <p>I need to read the SOAP:HEADER -> Session.</p>