0
<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" />

设置正文之后传递的正文为空。这是 SOAP 请求的路由。如何在骆驼路线本身中与所需的类对象进行交换?

4

0 回答 0