Uploaded image for project: 'SwitchYard'
  1. SwitchYard
  2. SWITCHYARD-2816

Ensure the fault is declared in WSDL before pass it to sendFault()

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Out of Date
    • Affects Version/s: None
    • Fix Version/s: FUTURE
    • Component/s: component-camel
    • Labels:
      None

      Description

      sendFault() should only be used for declared fault, so if the content is XML, service interface should be WSDL and the fault should be declared in WSDL. Otherwise it should throw HandlerException.
      https://github.com/jboss-switchyard/switchyard/blob/master/components/camel/camel-switchyard/src/main/java/org/switchyard/component/camel/switchyard/SwitchYardConsumer.java#L116
      https://github.com/jboss-switchyard/switchyard/blob/master/components/soap/src/main/java/org/switchyard/component/soap/OutboundHandler.java#L300

      However since it impacts existing application, I'd like to defer to 3.x.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  igarashitm tomohisa igarashi
                  Reporter:
                  igarashitm tomohisa igarashi
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: