title: How to add http-headers to all outcome jax-ws client's requests on websphere(WAS)?
body: <p>I want websphere WAS 8.0.0.5 to add my "Authorization:blabla" http-header to all my jax-ws client request to the service. I've read a lot of topics, but anything doesn't work. I have a jax-ws client deployed on websphere. I've created my own application poliicy set and attached on my service and created General client policy set binding with my authorization HTTP-header in custom properties of HTTP-transport. I attached my policy and binding to my client service, but it doesn't work. Every time I get the following exception: </p>
  
  <pre><code>00000023 SOAPOverHTTPS E   WSWS7263E: The following exception occured: org.apache.axis2.AxisFault: HTTP ( 401 ) Unauthorized address : http://192.168.32.120:8280/hello/1/1
      at com.ibm.ws.websvcs.transport.http.SOAPOverHTTPSender.processStatusCode(SOAPOverHTTPSender.java:3659)
      at com.ibm.ws.websvcs.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:595)
      at com.ibm.ws.websvcs.transport.http.HTTPTransportSender.invoke(HTTPTransportSender.java:366)
      at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:544)
      at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406)
      at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
      at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
      at org.apache.axis2.jaxws.core.controller.impl.AxisInvocationController.execute(AxisInvocationController.java:578)
      at org.apache.axis2.jaxws.core.controller.impl.AxisInvocationController.doInvoke(AxisInvocationController.java:127)
      at org.apache.axis2.jaxws.core.controller.impl.InvocationControllerImpl.invoke(InvocationControllerImpl.java:93)
      at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invokeSEIMethod(JAXWSProxyHandler.java:390)
      at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invoke(JAXWSProxyHandler.java:188)
      at $Proxy60.sayHello(Unknown Source)
      at com.lexa.HelloClient.doTest(HelloClient.java:36)
      at com.lexa.HelloClient.init(HelloClient.java:20)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
      at java.lang.reflect.Method.invoke(Method.java:611)
  </code></pre>
  
  <p>My problem is that I cannot modify client to insert my header programmatically. Can somebody explain why websphere binding doesn't work?</p>
  
  <p>Thanks</p>