Skip to content

Instantly share code, notes, and snippets.

@loalf
Created June 22, 2011 11:34
Show Gist options
  • Save loalf/1039915 to your computer and use it in GitHub Desktop.
Save loalf/1039915 to your computer and use it in GitHub Desktop.
Contratación póliza
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body>
<getPreciosResponse xmlns="http://xml.innovac.es">
<getPreciosResult>
<resultado xmlns="">
<PRECIO>
<NumPoliza>550441944</NumPoliza>
<Franja>2</Franja>
<TotalEspanya>1.05</TotalEspanya>
<TotalAndorra>1.05</TotalAndorra>
<TotalEuropa>1.05</TotalEuropa>
<TotalRestoMundo>0.00</TotalRestoMundo>
<TotalPortugal>0.00</TotalPortugal>
</PRECIO></resultado>
</getPreciosResult>
</getPreciosResponse>
</soap:Body></soap:Envelope>
HTTP/1.1 200 OK
Date: Wed, 22 Jun 2011 11:37:45 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private, max-age=0
Content-Type: text/xml; charset=utf-8
Content-Length: 624
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body>
<ContratarResponse xmlns="http://xml.innovac.es">
<ContratarResult>
<resultado xmlns="">
<estado>KO</estado>
<mensaje>No existen precios para la zona seleccionada.</mensaje>
</resultado>
</ContratarResult>
</ContratarResponse>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Date: Wed, 22 Jun 2011 11:27:58 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private, max-age=0
Content-Type: text/xml; charset=utf-8
Content-Length: 465
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://xml.innovac.es">
<SOAP-ENV:Body>
<ns1:Contratar>
<ns1:idSesion>d37ab8aa-0774-4fc7-8252-479fe83c7343</ns1:idSesion>
<ns1:numPoliza>550441944</ns1:numPoliza>
<ns1:numPasajeros>1</ns1:numPasajeros>
<ns1:numDias>1</ns1:numDias>
<ns1:crucero>0</ns1:crucero>
<ns1:zona>2</ns1:zona
><ns1:fechaDesde>20111230</ns1:fechaDesde>
<ns1:fechaHasta>20111230</ns1:fechaHasta>
<ns1:paisResidencia>España</ns1:paisResidencia>
<ns1:anulacion>1</ns1:anulacion><ns1:capital>10</ns1:capital>
</ns1:Contratar>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
POST /InnovacWS.asmx HTTP/1.1
Host: xmlpruebas.innovac.es
Connection: Keep-Alive
User-Agent: PHP-SOAP/5.3.2-1ubuntu4.9
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://xml.innovac.es/Contratar"
Content-Length: 646
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment