Compartir a través de


Procesar un mensaje de consulta

Si se registra para solicitudes de incorporación de cambios o extracción con solicitudes de sugerencias, Microsoft le envía un mensaje de consulta que especifica los datos del itinerario que necesita enviar en la siguiente fuente de precios.

Uso de solicitudes de incorporación de cambios

Si usa solicitudes de incorporación de cambios, Microsoft podría enviarle una solicitud similar al siguiente mensaje de consulta.

<?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>

En función del número de hoteles que tenga, Microsoft puede dividir la consulta en varias consultas más pequeñas con cada consulta que contenga un subconjunto de los hoteles de la lista de propiedades.

Cuando reciba el mensaje Consulta, la respuesta debe contener una fuente price con el siguiente <resultado>.

  <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>

  . . .
    

Uso de extracción con solicitudes de sugerencias

Para ver ejemplos que muestran los diferentes tipos de mensajes de consulta que Microsoft envía si usa la solicitud de extracción con sugerencias, consulte Creación de un mensaje de sugerencia.