下面是Spring DSL中Camel Context的代码片段。我可以检索 来自PAYLOAD消息的值,但无法使用RAW进行检索。有没有什么办法可以从RAW消息中检索值,这是一个SOAP请求XML?
<cxf:cxfEndpoint address="/xxx/xxx/xxx/xxx/" endpointName="vi:nameService" id="SOAPInput"
serviceName="vi:nameService" wsdlURL="wsdl/name.wsdl" xmlns:vi="http://services.visa.com/xx/xx/xx/xxx">
<camelContext id="camelContext" xmlns="http://camel.apache.org/schema/spring">
<from id="Listener" uri="cxf:bean:SOAPInput?dataFormat=RAW"/>
<setProperty id="setName" propertyName="name">
<xpath resultType="java.lang.String" trim="false">/*/*/*/v1:getname/name/text()</xpath>
</setProperty>