Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-2161

WSA handler class MAPCodec is not decoding From header

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.4
    • 2.0.11, 2.1.5, 2.2.1
    • None
    • None
    • CXF 2.1.4 embedded in JBossWS 3.1.0 running on JBossAS 5.1.0.Beta1

    Description

      Class MAPCodec includes code to encode the WSA From address contained in the client addressing properties into an outgoing SOAP header. However, it does not include any code to decode this field from the incoming SOAP headers at the receiving end.

      The relevant patch is as follows:

      [adinn@toby cxf-2.1.4]$ svn diff rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/soap/MAPCodec.java
      Index: rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/soap/MAPCodec.java
      ===================================================================
      — rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/soap/MAPCodec.java (revision 761707)
      +++ rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/soap/MAPCodec.java (working copy)
      @@ -463,6 +463,12 @@
      AttributedURIType.class,
      headerElement,
      unmarshaller));
      + } else if (Names.WSA_FROM_NAME.equals(localName))

      { + maps.setFrom(decodeAsNative( + headerURI, + EndpointReferenceType.class, + headerElement, + unmarshaller)); }

      else if (Names.WSA_TO_NAME.equals(localName)) {
      AttributedURIType addr = decodeAsNative(
      headerURI,

      Attachments

        Activity

          People

            eglynn Eoghan Glynn
            adinn Andrew Dinn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: