如何在camelcontext路由中将setBody从xml接收到pojo类?

时间:2017-12-22 10:23:04

标签: apache-camel spring-camel

<from uri="direct:validating-route" />
        <setBody>
            <simple>${body}</simple>
        </setBody>
        <log message="Mapping request from source to destination"
            loggingLevel="INFO" />
        <to
            uri="dozer:transformValidateWrapperType?mappingFile=mappings/validate-mapping.xml&amp;targetModel=in.map.loc.elements.ValidateWrapperType" />
        <log message="Completed MApping and sending request"
            loggingLevel="INFO" />
        <setBody>
            <simple>${body}</simple>
        </setBody>
        <setHeader headerName="operationNamespace">
            <constant>http://in.map.com/functions/tele/ap</constant>
        </setHeader>
        <to uri="cxf:bean:validateOutside" />

在set body为null之后传递了body。这是SOAP请求的路由。如何在骆驼路线本身中获取所需类对象的交换体?

0 个答案:

没有答案