Ver Mensaje Individual
  #5 (permalink)  
Antiguo 16/03/2009, 11:40
Avatar de Sonaoao
Sonaoao
 
Fecha de Ingreso: marzo-2009
Ubicación: Málaga (España)
Mensajes: 10
Antigüedad: 15 años, 1 mes
Puntos: 0
Respuesta: Petición SOAP por HTTP

OK.

LLamo a la funcion:

$client = new SoapClient("--HotelAvail.asmx?wsdl");


$client->funcion($a, $b, $c);

Pero, ¿cuál es la función y los parametros que espera la función?????

Seguro que no espera un xml????

¿Cómo se por ejemplo que funcion tengo que utilizar para una peticion como esta?:

POST /webservice/OTA_HotelAvail.asmx HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 2.0.50727.3053)
Content-Type: text/xml; charset=utf-8
SOAPAction: "--"
Host: xml.bookingengine.es
Content-Length: 1075
Expect: 100-continue

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="--"
xmlns:xsi="--"
xmlns:xsd="--">
<soap:Body>
<OTA_HotelAvailService xmlns="--">
<OTA_HotelAvailRQ PrimaryLangID="en">
<POS>
<Source AgentDutyCode="***">
<RequestorID MessagePassword="***"/>
</Source>
</POS>
<AvailRequestSegments>
<AvailRequestSegment>
<StayDateRange Start="2009-02-13T00:00:00" End="2009-02-14T00:00:00"/>
<RoomStayCandidates>
<RoomStayCandidate Quantity="1">
<GuestCounts>
<GuestCount Age="40" Count="1"/>
<GuestCount Age="40" Count="1"/>
</GuestCounts>
</RoomStayCandidate>
</RoomStayCandidates>
<HotelSearchCriteria>
<Criterion>
<HotelRef HotelCityCode="35424"/>
<TPA_Extensions>
<ShowBasicInfo xmlns="">1</ShowBasicInfo>
<ShowPromotions xmlns="">1</ShowPromotions>
</TPA_Extensions>
</Criterion>
</HotelSearchCriteria>
</AvailRequestSegment>
</AvailRequestSegments>
</OTA_HotelAvailRQ>
</OTA_HotelAvailService>
</soap:Body>
</soap:Envelope>

Toy perdidísimo es mi primera vez con SOAP... ya me iba directamente a rayarme con xmlhttprequest...

Muchas gracias por tus respuestas GatorV.