ประมวลผลข้อความคิวรี

ถ้าคุณลงทะเบียนสําหรับคําขอดึงข้อมูลหรือคําขอดึงด้วยคําแนะนํา Microsoft จะส่งข้อความ Query ที่ระบุข้อมูลกําหนดการเดินทางที่คุณต้องส่งใน ฟีดราคาครั้งถัดไปของคุณ

การใช้คําขอดึงข้อมูล

ถ้าคุณใช้คําขอดึงข้อมูล 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 อาจแบ่งคิวรีออกเป็นคิวรีขนาดเล็กหลายคิวรีโดยที่แต่ละคิวรีจะมีชุดย่อยของโรงแรมในรายชื่อที่พัก ทั้งนี้ขึ้นอยู่กับจํานวนโรงแรมที่คุณมี

When you get the Query message, your response should contain a Price feed 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>

  . . .
    

การใช้การดึงด้วยการร้องขอคําแนะนํา

สําหรับตัวอย่างที่แสดงข้อความคิวรีชนิดต่างๆ ที่ Microsoft ส่งหากคุณใช้การร้องขอแบบดึงด้วยคําแนะนํา ให้ดูที่ การสร้างข้อความคําแนะนํา