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

Coping Request SOAP Headers to Fault response

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.6.5, 2.7.2
    • None
    • None
    • Unknown

    Description

      Hi,

      Actually JAXWSMethodInvoker and AbstractJAXWSMethodInvoker contain code to copy request soap headers (except security one) to SOAP Fault: AbstractJAXWSMethodInvoker.updateHeader().

      I see some use cases when it is not really desired:

      1) Request SOAP headers contains some labelling information about request elements and they make sense only with request
      2) Request SOAP headers extending request elements with meta-information

      If request headers are copied into fault response, they can be invalid in response context and cause undesired effects:

      a) it makes response processing on the client side more difficult, especially if processing interceptor is called before incoming fault message is recognized and placed into exchange.getInFaultMessage()
      b) response fault message has larger size

      Proposal is to define context property that give user the possibility to switch-off coping request headers into fault response.
      Patch is attached.

      Regards,
      Andrei.

      Attachments

        1. JAXWSMethodInvoker.patch
          1 kB
          Andrei Shakirin

        Activity

          People

            ulhasbhole Ulhas Bhole
            ashakirin Andrei Shakirin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: