シンプルな cxf Web サービスを作成しました。以下は SOAP メッセージの本文です。
<soapenv:Body>
<bean:getRTOEmployeeSalary>
<!--Optional:-->
<bean:arg0>sdf</bean:arg0>
</bean:getRTOEmployeeSalary>
</soapenv:Body>
私の要件は、camel コンテキスト ファイルで arg0 の値を抽出することです。つまり、arg0 の値をログに記録したいと考えています。これについて私を助けてください
<route routePolicyRef="loggingInInterceptor">
<from uri="cxf:bean:rtoemplyeeService"/>
<setHeader headerName="exchange">
<spel>${exchange}</spel>
</setHeader>
<log message="value of arg0======== "/>
<convertBodyTo type="java.lang.String" id="stringInput"/>
<bean ref="rtoEmpBean" method="getRTOEmployeeSalary" beanType="rtoEmpBean" id="govtRTOEmp"/>
</route>
ここでは arg0 の値を使用する必要があります。