title: Add SOAP Header to Java Webservice
body: <p>I have created and deploy a very simple test webservice on my server.</p>
  
  <pre><code>public class HelloWorld {
  
      @WebMethod()
      public String sayHello(String name) {
          System.out.println("Hello: " + name);
          return "Hello " + name + "!";
      }
  }
  </code></pre>
  
  <p>next, i created a test client via File > New > Other > Web Services > Web Service Client.
  Fill the wsdl address, and eclipse do generate several classes automatically:</p>
  
  <pre><code>- HelloWorld.java
  - HelloWorldProxy.java
  - HelloWorldService.java
  - HelloWorldServiceLocator.java
  - HelloWorldServiceSoapBindingStub.java
  </code></pre>
  
  <p>then code the test client:</p>
  
  <pre><code>HelloWorldProxy wsHelloProxy = new HelloWorldProxy();
  String greeting = wsHelloProxy.sayHello('Jack');
  System.out.println(greeting) 
  </code></pre>
  
  <p>it is running succesfully.</p>
  
  <p>My Question is, how can i add additional headers in my client code,
  because i want to always send some information to my webservice.
  May i get the example ?</p>
  
  <p>Can anyone help?</p>
  
  <p>thx </p>