title: SOAP HTTP Parameter Cookie Java
body: <p>I'm trying to invoke a Web Service using the Java API javax.xml.soap.* with this code:</p>
  
  <pre><code>QName serviceName = new QName("xxx","xxx", "xxx");
  QName portName = new QName("xxx","xxx","xxx");
  String endpointAddress = "xxx";
  Service service = Service.create(serviceName);
  service.addPort(portName, SOAPBinding.SOAP11HTTP_BINDING,endpointAddress);
  Dispatch&lt;SOAPMessage&gt; dispatch =  service.createDispatch(portName,SOAPMessage.class,Service.Mode.MESSAGE);
  BindingProvider bp = (BindingProvider) dispatch;
  ...
  </code></pre>
  
  <p>It works perfectly, I just want to know how to pass the the Cookie value on the HTTP header of this request?
  The webservice is configured with security and I'm not able to login.</p>
  
  <p>Thanks!</p>
  
  <p>João</p>