處理查詢訊息
如果您使用提示要求註冊提取要求或提取,Microsoft會傳送 查詢 訊息給您,指定您在下一個 價格摘要中需要傳送的路線數據。
使用提取要求
如果您使用提取要求,Microsoft可能會傳送類似下列查詢訊息的要求。
<?xml version="1.0" encoding="UTF-8"?>
<Query>
<Checkin>2017-10-20</FirstDate>
<Nights>1</Nights>
<PropertyList>
<Property>223</Property>
<Property>256</Property>
<Property>289</Property>
</PropertyList>
</Query>
視您擁有的旅館數目而定,Microsoft可能會將查詢分成數個較小的查詢,且每個查詢都包含屬性清單中旅館的子集。
當您收到查詢訊息時,您的回應應該會包含具有下列<結果>的價格摘要。
<Result>
<Property>223</Property>
<Checkin>2017-10-20</Checkin>
<Nights>1</Nights>
<!-- Pricing and other elements that changed -->
</Result>
<Result>
<Property>223</Property>
<Checkin>2017-10-20</Checkin>
<Nights>2</Nights>
<!-- Pricing and other elements that changed -->
</Result>
<Result>
<Property>223</Property>
<Checkin>2017-10-20</Checkin>
<Nights>3</Nights>
<!-- Pricing and other elements that changed -->
</Result>
. . .
<Result>
<Property>223</Property>
<Checkin>2017-10-30</Checkin>
<Nights>1</Nights>
<!-- Pricing and other elements that changed -->
</Result>
<Result>
<Property>223</Property>
<Checkin>2017-10-30</Checkin>
<Nights>2</Nights>
<!-- Pricing and other elements that changed -->
</Result>
<Result>
<Property>223</Property>
<Checkin>2017-10-30</Checkin>
<Nights>3</Nights>
<!-- Pricing and other elements that changed -->
</Result>
. . .
<Result>
<Property>256</Property>
<Checkin>2017-10-20</Checkin>
<Nights>1</Nights>
<!-- Pricing and other elements that changed -->
</Result>
<Result>
<Property>256</Property>
<Checkin>2017-10-20</Checkin>
<Nights>2</Nights>
<!-- Pricing and other elements that changed -->
</Result>
<Result>
<Property>256</Property>
<Checkin>2017-10-20</Checkin>
<Nights>3</Nights>
<!-- Pricing and other elements that changed -->
</Result>
. . .
使用提取搭配提示要求
如需顯示當您搭配提示要求使用提取時,Microsoft傳送之不同類型查詢訊息的範例,請參閱 建立提示訊息。