Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-2118

Wrong action name using WS-Addressing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.1
    • None
    • client-api
    • None

    Description

      I'm trying to communicate to a .NET/WSE2.0 webservice.

      I use the ServiceClient with the following constructor:
      ServiceClient client = new ServiceClient(ConfigurationContext cc, Definition serviceDefinition, QName serviceName, String port);

      The problem we have now seems to be something with addressing. I already changed the namespace using the ServiceClient options:
      f_client.getOptions().setProperty(AddressingConstants.WS_ADDRESSING_VERS
      ION, Submission.WSA_NAMESPACE);

      The problem that remains is that the action doesn't seem to be correct.
      The wsdl mentions:
      <wsdl:binding name="Data_x0020_ExtractSoap"
      type="tns:Data_x0020_ExtractSoap">
      <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
      style="document"/>
      <wsdl:operation name="GetUnsentProductData"> <soap:operation
      soapAction="http://www.i-label.net/Partners/WebServices/DataFeed/2005/11
      /GetUnsentProductData" style="document"/>
      <wsdl:input>
      <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
      <soap:body use="literal"/>
      </wsdl:output>
      </wsdl:operation>
      </wsdl:binding>

      So the action should be
      http://www.i-label.net/Partners/WebServices/DataFeed/2005/11/GetUnsentPr
      oductData

      However the sent SOAP contains the following part:
      <wsa:Action
      xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssec
      urity-utility-1.0.xsd"
      wsu:Id="Id-25682308">http://www.i-label.net/Partners/WebServices/DataFee
      d/2005/11/Data_x0020_ExtractSoap/GetUnsentProductDataRequest</wsa:Action
      >

      Somehow it seems to insert the name of the Binding in the action.

      Is there a way to change this behaviour?

      Attachments

        1. extractdata.wsdl
          8 kB
          Brecht Yperman

        Activity

          People

            amilachinthaka Amila Chinthaka Suriarachchi
            brecht Brecht Yperman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: