Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-5158

Camel CXF consumer with dataFormat=PAYLOAD creates empty In message if received XML message is not valid

    XMLWordPrintable

Details

    • % %
    • Hide

      Use test case provided on SFDC ticket and follow steps from this comment.

      Show
      Use test case provided on SFDC ticket and follow steps from this comment .
    • 6.3 Sprint 4 (Mar 28 - Apr 29)

    Description

      A Camel-CXF consumer configured to consume messsage from JMS transport and also using dataFormat=PAYLOAD creates an empty In message on the Camel exchange if the XML payload received is not well formed.

      The CXF consumer endpoint is configured as

          <cxf:cxfEndpoint id="TestEndpoint"
              address="jms:queue:TEST?exchangePattern=InOnly&amp;messageType=text"
              serviceClass="...PortType">
              <cxf:properties>
                  <entry key="dataFormat" value="PAYLOAD" />
              </cxf:properties>
          </cxf:cxfEndpoint>
      

      and is used in a Camel consumer such as

        <route id="bug" trace="true">
          <from uri="cxf:bean:TestEndpoint"/>
          <log message="The body of the request is: ${body}" loggingLevel="INFO"/>
          <to uri="log:com.mycompany.order?showStreams=true&amp;showAll=true"/>
          <to uri="validator:file:{{SchemaFilePathRoot}}/schema.xsd?useDom=true"/>
          <log message="All good. Message is fine" />
        </route>
      

      Attachments

        Issue Links

          Activity

            People

              yfang@redhat.com Freeman(Yue) Fang
              rhn-support-tmielke Torsten Mielke
              Viliam Kasala Viliam Kasala
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: