Custom http headers in JAX-RPC request not working in websphere 8
<p>The below scenario is for IBM JDK and IBM JAX-RPC implementation.</p>

<p>The requirement is to send couple of customer header properties in JAX-RPC request with WebSphere as the container. I have the below code set in my client.</p>

<pre><code>HashMap headers = new HashMap();
headers.put("fid-app","Test");
headers.put("someKey","someValue");
stub._setProperty(Constants.REQUEST_TRANSPORT_PROPERTIES, headers);
</code></pre>

<p>I tried to test the client from my machine (adding WebSphere thin client to the classpath) and I was able to see the http headers are being passed properly. Same code doesn't work when it is deployed in WebSphere container. </p>

<p>When i enabled trace logs in both my local testing and container testing, i was able to see that Websphere tries to get REQUEST_TRANSPORT_PROPERTIES property from ThreadLocal but HashMap is being returned through my local testing and null is being returned in the container. </p>

<p>What could be the reason for this issue? Do we need to set any additional properties in container to enable request transport headers?</p>

<p>Thanks. </p>