IntegracionesOfi
Haga clic aquí para obtener una lista completa de operaciones.
CalculaPrecioHabitacion
Prueba
El formulario de prueba sólo está disponible para solicitudes del equipo local.SOAP 1.1
A continuación se muestra un ejemplo de solicitud y respuesta para SOAP 1.1. Es necesario reemplazar los marcadores de posición que aparecen con valores reales.
POST /IntegracionesOfi.asmx HTTP/1.1
Host: descargasdemo.ofitour.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/CalculaPrecioHabitacion"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<CalculaPrecioHabitacion xmlns="http://tempuri.org/">
<usuario>string</usuario>
<contraseña>string</contraseña>
<idProducto>int</idProducto>
<numeroAdultos>int</numeroAdultos>
<numeroNiños>int</numeroNiños>
<codigoRegimen>string</codigoRegimen>
<fechaEntrada>dateTime</fechaEntrada>
<fechaSalida>dateTime</fechaSalida>
<fechaPeticion>dateTime</fechaPeticion>
<codCliente>string</codCliente>
<idContratoComercial>int</idContratoComercial>
<idConceptoAcomodacion>int</idConceptoAcomodacion>
<mejorPrecio>boolean</mejorPrecio>
</CalculaPrecioHabitacion>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<CalculaPrecioHabitacionResponse xmlns="http://tempuri.org/">
<CalculaPrecioHabitacionResult>
<Precio>double</Precio>
<Divisa>string</Divisa>
</CalculaPrecioHabitacionResult>
</CalculaPrecioHabitacionResponse>
</soap:Body>
</soap:Envelope>
SOAP 1.2
A continuación se muestra un ejemplo de solicitud y respuesta para SOAP 1.2. Es necesario reemplazar los marcadores de posición que aparecen con valores reales.
POST /IntegracionesOfi.asmx HTTP/1.1
Host: descargasdemo.ofitour.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<CalculaPrecioHabitacion xmlns="http://tempuri.org/">
<usuario>string</usuario>
<contraseña>string</contraseña>
<idProducto>int</idProducto>
<numeroAdultos>int</numeroAdultos>
<numeroNiños>int</numeroNiños>
<codigoRegimen>string</codigoRegimen>
<fechaEntrada>dateTime</fechaEntrada>
<fechaSalida>dateTime</fechaSalida>
<fechaPeticion>dateTime</fechaPeticion>
<codCliente>string</codCliente>
<idContratoComercial>int</idContratoComercial>
<idConceptoAcomodacion>int</idConceptoAcomodacion>
<mejorPrecio>boolean</mejorPrecio>
</CalculaPrecioHabitacion>
</soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<CalculaPrecioHabitacionResponse xmlns="http://tempuri.org/">
<CalculaPrecioHabitacionResult>
<Precio>double</Precio>
<Divisa>string</Divisa>
</CalculaPrecioHabitacionResult>
</CalculaPrecioHabitacionResponse>
</soap12:Body>
</soap12:Envelope>