1 Reply Latest reply on Jul 11, 2016 11:59 AM by Zlatko Sirotic

    Missing WS-Addressing header: "{http://www.w3.org/2005/08/addressing}Action"

    3211294

      Java Man   Java Tim Java Universal Network Java Java Enterprise Edition

      The specified item was not found. Java Forum Sweden Java User Group Baku

      Developer Community ArchBeat Blog Oracle Application Express (APEX) Oracle User Group in ThailandOracle Academy APAC Community The specified item was not found.

      Java Technologies for Web Services WebLogic Server - Web Services(Archived)

       

       

      Hi everyone,

       

      I try to client to web service in java 7 with weblogic server. I get it:

       

      WARNING: A required header representing a Message Addressing Property is not present, Problem header:{http://www.w3.org/2005/08/addressing}Action

      com.sun.xml.internal.ws.addressing.model.MissingAddressingHeaderException: Missing WS-Addressing header: "{http://www.w3.org/2005/08/addressing}Action"

       

      How can I solve this error?

       

      Thanks a lot.

       

      web service security looks like following parts

      <soapenv:Header>

            <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">

               <wsse:UsernameToken wsu:Id="UsernameToken-1">

                  <wsse:Username>gelistirici</wsse:Username>

                  <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">gelistirme12</wsse:Password>

                  <wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">NT357!!_</wsse:Nonce>

                  <wsu:Created>2016-05-07T11:57:03.821Z</wsu:Created>

               </wsse:UsernameToken>

            </wsse:Security>

         </soapenv:Header>

       

       

      Web Service Interface

          @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;

       

       

       

      java code for web service client

        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", "developer");

        provider.getRequestContext().put("Password", "devdev12");

        provider.getRequestContext().put("Nonce", "Ng+ufFUC6ELSuNo88HSvkw==");

        provider.getRequestContext().put("Created", "2016-05-07T11:57:03.821Z");

       

       

        RequestDetail requestDetail = port.getRequestDetail(37);