title: Java-Missing WS-Addressing header: "{http://www.w3.org/2005/08/addressing}Action"
body: <p>I try to client to web service in java 7. I get it:</p>
  
  <p>WARNING: A required header representing a Message Addressing Property is not present, Problem header:{<a href="http://www.w3.org/2005/08/addressing" rel="nofollow">http://www.w3.org/2005/08/addressing</a>}Action
  com.sun.xml.internal.ws.addressing.model.MissingAddressingHeaderException: Missing WS-Addressing header: "{<a href="http://www.w3.org/2005/08/addressing" rel="nofollow">http://www.w3.org/2005/08/addressing</a>}Action"</p>
  
  <p>How can I solve this error?</p>
  
  <p>Thanks a lot.</p>
  
  <p>--web service security looks like following parts in SOAPUI--</p>
  
  <pre><code>    &lt;wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"&gt;
           &lt;wsse:UsernameToken wsu:Id="UsernameToken-1"&gt;
              &lt;wsse:Username&gt;gelistirici&lt;/wsse:Username&gt;
              &lt;wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"&gt;gelistirme12&lt;/wsse:Password&gt;
              &lt;wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"&gt;NT357!!_&lt;/wsse:Nonce&gt;
              &lt;wsu:Created&gt;2016-05-07T11:57:03.821Z&lt;/wsu:Created&gt;
           &lt;/wsse:UsernameToken&gt;
        &lt;/wsse:Security&gt;
     &lt;/soapenv:Header&gt;
  </code></pre>
  
  <p>--Web Service Interface--</p>
  
  <pre><code> @WebMethod(action = "getRequestDetail")
      @WebResult(name = "requestDetail", targetNamespace = "")
      @RequestWrapper(localName = "getRequestDetail", targetNamespace = "http://xmlns.oracle.com/scheduler", className = "tr.com.service.soap.client.oracle.ess.beans.GetRequestDetail")
      @ResponseWrapper(localName = "getRequestDetailResponse", targetNamespace = "http://xmlns.oracle.com/scheduler", className = "tr.com.service.soap.client.oracle.ess.beans.GetRequestDetailResponse")
      public RequestDetail getRequestDetail(
          @WebParam(name = "requestId", targetNamespace = "http://xmlns.oracle.com/scheduler")
         long requestId)
          throws NotFoundException_Exception, RuntimeServiceException_Exception;
  </code></pre>
  
  <p>--java code for web service client--</p>
  
  <pre><code>ESSWebService_Service service = new ESSWebService_Service();
    ESSWebService port = service.getSchedulerServiceImplPort();
    BindingProvider provider = BindingProvider.class.cast(port);
  
    provider.getRequestContext().put("UsernameToken", "UsernameToken-1");
    provider.getRequestContext().put("Username", "gelistirici");
    provider.getRequestContext().put("Password", "gelistirme12");
    provider.getRequestContext().put("Nonce", "NT357!!_");
    provider.getRequestContext().put("Created", "2016-05-07T11:57:03.821Z");
  
    RequestDetail requestDetail = port.getRequestDetail(37);
  </code></pre>