title: How to set SOAP header in JAX-WS client
body: <p>I'm trying to follow <a href="http://www.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.nd.doc/ae/twbs_cookiejaxws.html" rel="nofollow noreferrer">this example</a> and the goal is to set SOAP Header.</p>
  
  <p>So far my code looks like this:</p>
  
  <pre><code>SomethingPortType portType = service.getPort(SomethingPortType.class);
  
  Map&lt;String, Object&gt; requestHeaders = new HashMap&lt;String, Object&gt;();
  requestHeaders.put("MyHeader1", "This is a string value");
  requestHeaders.put("MyHeader2", "This is a string value2");
  
  // Set the Map as a property on the RequestContext.
  BindingProvider bp = (BindingProvider) portType;
  bp.getRequestContext().put("???", requestHeaders);
  </code></pre>
  
  <p>I'm not using any application server, how to figure out what I should put in place of ??? (or com.ibm.websphere.webservices.Constants.REQUEST_TRANSPORT_PROPERTIES from example) to set SOAP Header properly?</p>