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

Wrong wsa:Action for faults

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.3.6
    • Fix Version/s: None
    • Component/s: Tooling, WS-* Components
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      When using WS-Addressing, the wrong wsa:Action is default-generated in case of faults: The URI contains the name of the element used for the fault (/definition/types/schema/element/@name) instead of the fault name (/definition/porttype/operation/fault/@name).

      Relevant chapter in the spec: https://www.w3.org/TR/ws-addr-metadata/#defactionwsdl11

      The behaviour can be observed using the ws_addressing sample project, where the generated fault action is

      <Action xmlns="http://www.w3.org/2005/08/addressing">http://apache.org/hello_world_soap_http/Greeter/pingMe/Fault/faultDetail</Action>

      but should be

      <Action xmlns="http://www.w3.org/2005/08/addressing">http://apache.org/hello_world_soap_http/Greeter/pingMe/Fault/pingMeFault</Action>

      Explicitly setting the Action, i.e.

      <wsdl:fault name="pingMeFault" message="tns:pingMeFault"  wsam:Action="http://apache.org/hello_world_soap_http/Greeter/pingMe/Fault/pingMeFault" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata"/>
      

      doesn't influence this behaviour even though it leads to additional generated code:

      @Action(fault = {@FaultAction(className = PingMeFault.class, value = "http://apache.org/hello_world_soap_http/Greeter/pingMe/Fault/pingMeFault")})

       

      Possibly related issues: CXF-2827, CXF-2831, CXF-8146

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              FabianOhler Fabian Ohler
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: