Process a Query message
If you sign up for pull requests or pull with hints requests, Microsoft sends you a Query message that specifies the itinerary data that you need to send in your next Transaction message.
Using pull requests
If you use pull requests, Microsoft could send you a request that's similar to the following Query message.
<?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>
Depending on the number of hotels you have, Microsoft may break the query up into several smaller queries with each query containing a subset of the hotels in the property list.
When you get the Query message, your response should contain a Transaction message with the following <Result>.
<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>
. . .
Using pull with hints requests
For examples that show the different types of Query messages that Microsoft sends if you use pull with hints request, see Creating a Hint Message.
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru