title: Setting a custom cookie in the HTTP headers inside a SOAP Message handler
body: <p>I need to create a Cookie with a specific name to be sent across in my web service calls to another network which has a routing logic based on it.</p>
  
  <p>When i try to set to the HTTP header in my SOAP handler using </p>
  
  <pre><code>headers.put("Cookie", Collections.singletonList(cookiename + "='" + cookieValue + "'")); 
  </code></pre>
  
  <p>it works for the first time.</p>
  
  <p>The response for this comes with a <strong>Set-Cookie for JSESSIONID</strong>.</p>
  
  <p>My subsequent requests hold that JSESSIONID and it's value in the cookie and ignores setting my custom cookie.</p>
  
  <p>Is there a way to make sure that my cookie gets set by default in all my requests? </p>