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

If no wsa:To header is present on an inbound message we should default to the addressing anonymous URI.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2
    • 1.3, nightly
    • Addressing
    • None

    Description

      The WS-Addressing spec says that if the wsa:To header is ommitted then the anonymous URI should be used as the value of the header. This is in conflict with the following comment that is included with the AddressingFinalInHandler:

      //According to the WS-Addressing spec, we should default the wsa:To header to the
      //anonymous URI. Doing that, however, might prevent a different value from being
      //used instead, such as the transport URL.

      It turns out that defaulting to the transport URL only makes sense on the inbound request side of an in-out MEP because in a sychronous exchange there is no transport URL for the response as we use the HTTP back channel. It also turns out that defaulting to the anonymous URI only makes sense on the inbound response side, as there is no benefit in sending the wsa:To header as we always use the HTTP back channel. Therefore, I prose to change the code so that it only defaults to the anonymous URI on the inbound response side of an exchange. Patch to follow.

      Attachments

        1. patch.txt
          3 kB
          Brian DePradine

        Activity

          People

            pradine Brian DePradine
            pradine Brian DePradine
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: