POST /XMLWebService.asmx HTTP/1.1
Host: xml.qa.goglobal.travel
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>
<MakeRequest xmlns="http://www.goglobal.travel/">
<requestType>string</requestType>
<xmlRequest>string</xmlRequest>
</MakeRequest>
</soap12:Body>
</soap12:Envelope>
Próbowałem już różnych sposobów ale za chiny nie wiem jak wysłać np. takiego xmla aby otrzymać odpowiedź z listą hoteli
XML
<?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> <Root> <Header> <Agency>1520475</Agency> <User>PGHPOLXML</User> <Password>xxxxxx</Password> <Operation>HOTEL_SEARCH_REQUEST</Operation> <OperationType>Request</OperationType> </Header> <Main> <SortOrder>0</SortOrder> <FilterPriceMin>0</FilterPriceMin> <FilterPriceMax>10000</FilterPriceMax> <MaximumWaitTime>30</MaximumWaitTime> <MaxResponses>1000</MaxResponses> <FilterRoomBasises> <FilterRoomBasis></FilterRoomBasis> </FilterRoomBasises> <HotelName></HotelName> <CityCode>75</CityCode> <ArrivalDate>2014-05-06</ArrivalDate> <Nights>3</Nights> <Rooms> <Room Type="TWN" RoomCount="1" CotCount="0"></Room> </Rooms> </Main> </Root> </soap12:Body> </soap12:Envelope>
Teraz mam coś takiego
$url = 'http://xml.qa.goglobal.travel/XMLWebService.asmx?WSDL';
var_dump zwraca mi
array(4) { [0]=> string(86) "MakeRequestCompressedResponse MakeRequestCompressed(MakeRequestCompressed $parameters)" [1]=> string(56) "MakeRequestResponse MakeRequest(MakeRequest $parameters)" [2]=> string(86) "MakeRequestCompressedResponse MakeRequestCompressed(MakeRequestCompressed $parameters)" [3]=> string(56) "MakeRequestResponse MakeRequest(MakeRequest $parameters)" }
chciałbym teraz użyć funkcji MakeRequest do wykonania zapytania XML z poprzedniego posta. Jak to ogarnąć?