Procesar un mensaje de consulta

Si se registra para recibir solicitudes de incorporación de cambios o solicitudes de incorporación de cambios con sugerencias, Microsoft le envía un mensaje de consulta que especifica los datos del itinerario que debe enviar en su próxima 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>

Según el número de hoteles que tenga, Microsoft puede dividir la consulta en varias consultas más pequeñas, y cada consulta contiene un subconjunto de los hoteles de la lista de propiedades.

Cuando recibas el mensaje de consulta, tu respuesta debe contener una fuente de precios 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 solicitudes de incorporación de cambios con sugerencias

Para ver ejemplos que muestran los distintos tipos de mensajes de consulta que envía Microsoft si utiliza la solicitud pull with hints, consulte Creación de un mensaje de sugerencia.