0

私の要件は、チェーンに基づいて xpath に基づいていくつかのプロパティを作成する必要があることです。

フローは次のようなものです:

1) service1 を呼び出し、その応答に基づいてプロパティ メディエーター (svc1_property) を作成しています。2) service2 に対して呼び出しが行われ、service2 からフェッチされた応答には値のリストが含まれています。

3) プロパティ svc1_property を使用して、xpath に基づいて svc2 の応答からノードをフェッチする必要があります。

構成は次のとおりです。

expression="fn:concat("//ImageList[Level='Employee'][ImageCaption='",$ctx:EmpName,"']/IMG_Large")" scope="default" type="STRING"

EmpName は、svc1 で作成されたプロパティです。

4

2 に答える 2

5

評価を使用する

例:

<property name="xpathexpr" expression="fn:concat('//',get-property('xpathexpression'))" scope="default" type="STRING"/>
<property name="xpatheval" expression="evaluate($ctx:xpathexpr)" scope="default" type="STRING"/>

詳細については、このブログを参照してください。

于 2016-01-14T11:05:55.620 に答える
0

The Above article shows the case where property is being used for source . But my requirement is different. The response coming from one API will give the empname and based on that i will fetch the pics of the emp from the list expression="fn:concat("//ImageList[Level='Employee'][ImageCaption='",$ctx:EmpName,"']/IMG_Large")" scope="default" type="STRING" on execution of the above expression the reponse i am getting is //ImageList[Level='Employee'][ImageCaption='Timmy']/IMG_Large ...... if Timmy is the empname. it is just picking the variable name(Timmy in this case) and is not parsing the xpath getting created

于 2013-07-28T02:52:20.380 に答える