'. $cr;
$GetRoomTypesRequest =$GetRoomTypesRequest. "". $cr;
$GetRoomTypesRequest =$GetRoomTypesRequest. "". $cr;
$GetRoomTypesRequest =$GetRoomTypesRequest. "". $UserId. "". $cr;
$GetRoomTypesRequest =$GetRoomTypesRequest. "". $UserPassword. "". $cr;
$GetRoomTypesRequest =$GetRoomTypesRequest. "". $VendorId. "". $cr;
$GetRoomTypesRequest =$GetRoomTypesRequest. "". $VendorPassword. "". $cr;
$GetRoomTypesRequest =$GetRoomTypesRequest. "63". $cr;
$GetRoomTypesRequest =$GetRoomTypesRequest. "". $cr;
$GetRoomTypesRequest =$GetRoomTypesRequest. "";
$data_string=trim ($GetRoomTypesRequest);
$filename= " GetRoomTypes ";
// $headerarr=array ("Zadawalać-Typ: tekst/xml ");
$headerarr = szyk (
"Zadawalać-Typ: tekst/xml; charset= \ "utf-8 \ "",
"Akceptować: tekst/xml",
"Cache-Kontrolować: żadny-cache",
"Pragma: żadny-cache",
"SOAPAction: \ "\ "",
"Zadawalać-Długość: " .strlen ($data_string)
);
$file=fopen ($filename. "Request.xml", "w+");
fwrite ($file, $data_string);
fclose ($file);
$curl_handle = curl_init ();
curl_setopt ($curl_handle, CURLOPT_URL, $url);
curl_setopt ($curl_handle, CURLOPT_HTTPHEADER, $headerarr);
curl_setopt ($curl_handle, CURLOPT_HEADER, (0));
curl_setopt ($curl_handle, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt ($curl_handle, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($curl_handle, CURLOPT_POST, 1);
curl_setopt ($curl_handle, CURLOPT_POSTFIELDS, $data_string);
// Wykonywać the POCZTA i dostawać the dane the serwer.
$result = curl_exec ($curl_handle) lub kostka do gry ("Tam być CURL_EXEC błąd");
// Zakończenie the SKARBIKOWANY rękojeść
curl_close ($curl_handle);
$file=fopen ($filename. "Response.xml", "w+");
fwrite ($file, $result);
fclose ($file);
echowy $result;
? >
|