DSSサービスから返された結果に含まれるデータをXPathで見つけることは非常に困難です。これは、データのサンプルが返され名前空間のためにForEachメディエータでDSSの結果を繰り返すことができません
:
<?xml version='1.0' encoding='utf-8'?>
<Entries xmlns="http://ws.wso2.org/dataservice">
<Entry>
<FirstName>Sandra</FirstName>
<LastName>Carr</LastName>
<FlightDate>2016-07-23T18:24:12.000-04:00</FlightDate>
<Duration>2.8</Duration>
<FlightEndTime>2016-07-23T21:24:12.000-04:00</FlightEndTime>
</Entry>
<Entry>
<FirstName>Lawrence</FirstName>
<LastName>Day</LastName>
<FlightDate>2016-07-23T18:02:21.000-04:00</FlightDate>
<Duration>2.8</Duration>
<FlightEndTime>2016-07-23T21:02:21.000-04:00</FlightEndTime>
</Entry>
を私は
<?xml version="1.0" encoding="UTF-8"?>
<api context="/pilots" name="GetPilots" xmlns="http://ws.apache.org/ns/synapse">
<resource methods="GET">
<inSequence>
<call>
<endpoint key="GetPilotsRestEndpoint"/>
</call>
<foreach description="" expression="/Entries/Entry" id="field">
<sequence>
<log description="" level="custom">
<property name="tag" value="Entry"/>
</log>
</sequence>
</foreach>
<log level="full"/>
<respond/>
</inSequence>
<outSequence/>
<faultSequence/>
</resource>
あるシンプルなシナプスAPIのシーケンスを持っている私は何も結果を得ていないのです。私はそれが "エントリー"タグ内の名前空間のためであるかどうか疑問に思っています。
いずれにしても、誰かが結果を繰り返し処理する方法を教えてください。
ありがとうございました。
AWESOME !!!説明と解決の両方におかげさまで、ありがとうございます。 –