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

relayHeaders property is applicable only for dataFormat=POJO

    Details

      Description

      <cxf:relayHeaders>false</cxf:relayHeaders> is placed to the CXF binding definition if you choose Data Format different from POJO. This property applies noly for POJO format http://camel.apache.org/cxf.html. If you deploy an aplication with such a binding you will get:

      Caused by: org.switchyard.SwitchYardException: org.apache.camel.FailedToCreateRouteException: Failed to create route V2CamelCxfBindingModel/OrderService@cxf1#-1580494901: Route(V2CamelCxfBindingModel/OrderService@cxf1#-1580494901)[... because of Failed to resolve endpoint: cxf://http://localhost:8082/camel-cxf/order/OrderService?dataFormat=PAYLOAD&relayHeaders=false&wsdlURL=OrderService.wsdl due to: Failed to resolve endpoint: cxf://http://localhost:8082/camel-cxf/order/OrderService?dataFormat=PAYLOAD&relayHeaders=false&wsdlURL=OrderService.wsdl due to: There are 1 parameters that couldn't be set on the endpoint. Check the uri if the parameters are spelt correctly and that they are properties of the endpoint. Unknown parameters=[{relayHeaders=false}]
      

      The property relayHeaders cannot be removed in other way than by modification of switchyard.xml file directly.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bfitzpat Brian Fitzpatrick
                Reporter:
                trohovsky Tomas Rohovsky
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: