<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&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请求的路由。如何在骆驼路线本身中获取所需类对象的交换体?