title: Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: A required header representing a Message Addressing Property is not present
body: <p>Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: A required header representing a Message Addressing Property is not present</p>
  
  <p>what i am missing? i add wdsl-addressing programatically:</p>
  
  <pre><code>wsbp.setOutboundHeaders( new StringHeader(WS_ADDR_VER.messageIDTag, uuid), replyTo.createHeader(WS_ADDR_VER.replyToTag));
  </code></pre>
  
  <p>i am using jdeveloper 11g</p>
  
  <p>CODE:</p>
  
  <pre><code>asyncNarociloServisService = new AsyncNarociloServisService();
  AsyncNarociloServis asyncNarociloServis = asyncNarociloServisService.getAsyncNarociloServisPort();
  
  
  // Get the request context to set the outgoing addressing properties
  WSBindingProvider wsbp = (WSBindingProvider)asyncNarociloServis;
  WSEndpointReference replyTo = new WSEndpointReference("http://84.255.215.133:7101/TestniWS-TestniWS-context-root/AsyncNarociloServisResponseImplPort", WS_ADDR_VER);
  String uuid = "uuid:" + UUID.randomUUID();
  
  wsbp.setOutboundHeaders( new StringHeader(WS_ADDR_VER.messageIDTag, uuid), replyTo.createHeader(WS_ADDR_VER.replyToTag));
  </code></pre>
  
  <p>WSDL:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;definitions
       name="AsyncNarociloServisService"
       targetNamespace="http://www.xxx.si/narocilowsdl"
       xmlns="http://schemas.xmlsoap.org/wsdl/"
       xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
       xmlns:tns="http://www.xxx.si/narocilowsdl"
       xmlns:nar="http://www.xxx.si/narocilo"
       xmlns:xsd="http://www.w3.org/2001/XMLSchema"
       xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
       xmlns:pov="http://www.xxx.si/povratnica"
      &gt;
      &lt;plnk:partnerLinkType name="AsyncNarociloServis"&gt;
          &lt;plnk:role name="AsyncNarociloServisProvider"&gt;
              &lt;plnk:portType name="tns:AsyncNarociloServis"/&gt;
          &lt;/plnk:role&gt;
          &lt;plnk:role name="AsyncNarociloServisRequestor"&gt;
              &lt;plnk:portType name="tns:AsyncNarociloServisResponse"/&gt;
          &lt;/plnk:role&gt;
      &lt;/plnk:partnerLinkType&gt;
      &lt;types&gt;
          &lt;xsd:schema&gt;
              &lt;xsd:import namespace="http://www.xxx.si/narocilo" schemaLocation="narocilo.xsd"/&gt;
          &lt;/xsd:schema&gt;
          &lt;xsd:schema&gt;
              &lt;xsd:import namespace="http://www.xxx.si/povratnica" schemaLocation="povratnica.xsd"/&gt;
          &lt;/xsd:schema&gt;
      &lt;/types&gt;
      &lt;message name="obdelajNarociloResponse"&gt;
          &lt;part name="parameters" element="pov:povratnica"/&gt;
      &lt;/message&gt;
      &lt;message name="obdelajNarocilo"&gt;
          &lt;part name="parameters" element="nar:narocilo"/&gt;
      &lt;/message&gt;
      &lt;portType name="AsyncNarociloServisResponse"&gt;
          &lt;operation name="obdelajNarociloOperationResponse"&gt;
              &lt;input message="tns:obdelajNarociloResponse"/&gt;
          &lt;/operation&gt;
      &lt;/portType&gt;
      &lt;portType name="AsyncNarociloServis"&gt;
          &lt;operation name="obdelajNarociloOperation"&gt;
              &lt;input message="tns:obdelajNarocilo"/&gt;
          &lt;/operation&gt;
      &lt;/portType&gt;
      &lt;binding name="AsyncNarociloServisResponsePortBinding" type="tns:AsyncNarociloServisResponse"&gt;
          &lt;soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/&gt;
          &lt;operation name="obdelajNarociloOperationResponse"&gt;
              &lt;soap:operation soapAction=""/&gt;
              &lt;input&gt;
                  &lt;soap:body use="literal"/&gt;
              &lt;/input&gt;
          &lt;/operation&gt;
      &lt;/binding&gt;
      &lt;binding name="AsyncNarociloServisPortBinding" type="tns:AsyncNarociloServis"&gt;
          &lt;soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/&gt;
          &lt;operation name="obdelajNarociloOperation"&gt;
              &lt;soap:operation soapAction=""/&gt;
              &lt;input&gt;
                  &lt;soap:body use="literal"/&gt;
              &lt;/input&gt;
          &lt;/operation&gt;
      &lt;/binding&gt;
      &lt;service name="AsyncNarociloServisService"&gt;
          &lt;port name="AsyncNarociloServisPort" binding="tns:AsyncNarociloServisPortBinding"&gt;
              &lt;soap:address location="http://www.xxx.si:9088/ServicesG/services/AsyncNarociloServisPort"/&gt;
          &lt;/port&gt;
      &lt;/service&gt;
  &lt;/definitions&gt;
  </code></pre>
  
  <p>EDIT:</p>
  
  <p>request</p>
  
  <pre><code>&lt;S:Header&gt;
      &lt;To xmlns="http://www.w3.org/2005/08/addressing"&gt;??&lt;/To&gt;
      &lt;Action xmlns="http://www.w3.org/2005/08/addressing"&gt;??&lt;/Action&gt;
      &lt;MessageID xmlns="http://www.w3.org/2005/08/addressing"&gt;uuid:c839d6f4-2c33-4f5b-b001-7ce9869a3aa3&lt;/MessageID&gt;
      &lt;wsa:ReplyTo xmlns:wsa="http://www.w3.org/2005/08/addressing"&gt;
        &lt;wsa:Address&gt;http://84.255.215.133:7101/TestniWS-TestniWS-context-root/AsyncNarociloServisResponseImplPort&lt;/wsa:Address&gt;
      &lt;/wsa:ReplyTo&gt;
    &lt;/S:Header&gt;
    &lt;S:Body&gt;
  </code></pre>
  
  <p>what to be in ??</p>