Camel
  1. Camel
  2. CAMEL-4515

Spring-WS should populate Camel Header with the SOAP Header

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.8.1
    • Fix Version/s: 2.11.1, 2.12.0
    • Component/s: camel-spring-ws
    • Labels:
      None
    • Patch Info:
      Patch Available
    • Estimated Complexity:
      Unknown

      Description

      Currently the Camel-Spring-WS component does not support the setting of SOAP Headers and has issues getting them. The current issue getting the SOAP Headers when receiving a message is that the resulting header key includes the namespace.

      Change the component so that a Camel header "CamelSpringWebserviceSoapHeader" can be populated with an intended SOAP Header for a request, and that this Header is also populated from the SOAP Header on a response.

      1. CAMEL-4515.1.patch
        15 kB
        Damian
      2. CAMEL-4515.2.patch
        16 kB
        Damian

        Issue Links

          Activity

          Damian created issue -
          Damian made changes -
          Field Original Value New Value
          Description SOAP Headers must be namespace qualified (http://www.w3schools.com/soap/soap_header.asp), and when the Consumer extracts the SOAP headers to populate the Exchange Headers it uses the QName.toString() method. This results in a headers key like :

          {http://mynamespace.url}MyHeaderKey

          The SpringWebserviceConsumer should be modified to use the getLocalPart() method instead so that the Camel Header is (for example) "MyHeaderKey".
          SOAP Headers must be namespace qualified (http://www.w3schools.com/soap/soap_header.asp), and when the Consumer extracts the SOAP headers to populate the Exchange Headers it uses the QName.toString() method. This results in a headers key like :

          {http://mynamespace.url}MyHeaderKey

          The SpringWebserviceConsumer should be modified to use the QName.getLocalPart() method instead so that the Camel Header is (for example) "MyHeaderKey".
          Damian made changes -
          Attachment CAMEL-4515.patch [ 12497747 ]
          Damian made changes -
          Summary Spring-ws Consumer keeps SOAP Header namespace when populating Camel Headers Spring-WS should populate Camel Header with the SOAP Header
          Patch Info Patch Available [ 10042 ]
          Description SOAP Headers must be namespace qualified (http://www.w3schools.com/soap/soap_header.asp), and when the Consumer extracts the SOAP headers to populate the Exchange Headers it uses the QName.toString() method. This results in a headers key like :

          {http://mynamespace.url}MyHeaderKey

          The SpringWebserviceConsumer should be modified to use the QName.getLocalPart() method instead so that the Camel Header is (for example) "MyHeaderKey".
          Currently the Camel-Spring-WS component does not support the setting of SOAP Headers and has issues getting them.

          Change the component so that a Camel header "CamelSpringWebserviceSoapHeader" can be populated with an intended SOAP Header for a request, and that this Header is also populated from the SOAP Header on a response.
          Damian made changes -
          Description Currently the Camel-Spring-WS component does not support the setting of SOAP Headers and has issues getting them.

          Change the component so that a Camel header "CamelSpringWebserviceSoapHeader" can be populated with an intended SOAP Header for a request, and that this Header is also populated from the SOAP Header on a response.
          Currently the Camel-Spring-WS component does not support the setting of SOAP Headers and has issues getting them. The current issue getting the SOAP Headers when receiving a message is that the resulting header key includes the namespace.

          Change the component so that a Camel header "CamelSpringWebserviceSoapHeader" can be populated with an intended SOAP Header for a request, and that this Header is also populated from the SOAP Header on a response.
          Damian made changes -
          Attachment CAMEL-4515.1.patch [ 12500602 ]
          Damian made changes -
          Attachment CAMEL-4515.1.patch [ 12500603 ]
          Damian made changes -
          Attachment CAMEL-4515.2.patch [ 12502071 ]
          Damian made changes -
          Attachment CAMEL-4515.1.patch [ 12500602 ]
          Damian made changes -
          Attachment CAMEL-4515.patch [ 12497747 ]
          Willem Jiang made changes -
          Assignee Willem Jiang [ njiang ]
          Claus Ibsen made changes -
          Assignee Willem Jiang [ njiang ] Claus Ibsen [ davsclaus ]
          Claus Ibsen made changes -
          Fix Version/s 2.11.1 [ 12323967 ]
          Fix Version/s 2.12.0 [ 12323968 ]
          Claus Ibsen made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Richard Kettelerij made changes -
          Link This issue is duplicated by CAMEL-5669 [ CAMEL-5669 ]

            People

            • Assignee:
              Claus Ibsen
              Reporter:
              Damian
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development