title: Set spring integration header into soap header in spring integration (without interceptor/ threadlocal)
body: <p>Is there anyway to set SOAP-ENV header in spring integration xml from spring integration headers ?</p>
  
  <p>I tried below approach and expected <code>bId</code> to be populated to soap headers</p>
  
  <pre><code>&lt;int:chain id="soapcall" input-channel="soapchannel"&gt;      
          &lt;int-xml:header-enricher&gt;
              &lt;int-xml:header name="bId" expression="headers['bId']"/&gt;
          &lt;/int-xml:header-enricher&gt;
            &lt;int-ws:outbound-gateway  uri="${soap.url}" interceptor="myInterceptor"&gt;
            &lt;/int-ws:outbound-gateway&gt; 
       &lt;/int:chain&gt;
  </code></pre>
  
  <p>However Actual output doesn't have the header. see below:</p>
  
  <pre><code>&lt;SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
                     xmlns:n1="http://namespace/n1"&gt;
     &lt;SOAP-ENV:Header/&gt;
     &lt;SOAP-ENV:Body&gt; ...
     &lt;/SOAP-ENV:Body&gt;
  &lt;/SOAP-ENV:Envelope&gt;
  </code></pre>
  
  <p>I also looked into below approach inside chain before calling outbound gateway. It seems this header enricher takes only soap action as header. So this throws exception <code>action headers not found</code> </p>
  
  <pre><code>&lt;int-ws:header-enricher &gt;
              &lt;int-ws:soap-action expression="headers['bId']"/&gt;
            &lt;/int-ws:header-enricher&gt;
  </code></pre>
  
  <p>I also looked into <a href="http://forum.spring.io/forum/spring-projects/integration/128136-how-to-return-soap-header-with-custom-properties-from-inbound-gateway?p=611562#post611562" rel="nofollow">this</a> post. But I couldn't get this compiled inside a chain.</p>