class= " lineNumbers " del
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
|
class= del
>< notpretty " del class= " del id= " codeSnippet752726 del '. $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 (“Soddisfare-Tipo: testo/xml ");
$headerarr = allineamento (
“Soddisfare-tipo: testo/xml; charset= \ “utf-8 \ "",
“Accettare: testo/xml„,
“Nascondiglio-Controllo: nessun-nascondiglio„,
“Pragma: nessun-nascondiglio„,
“SOAPAction: \ “funzionato \ "",
“Soddisfare-lunghezza: „ .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);
// effettua l'ALBERINO ed ottiene i dati restituiti dall'assistente.
$result = il curl_exec ($curl_handle) o muoiono (“ci è stato un errore di CURL_EXEC„);
Fine di // la maniglia dell'ARRICCIATURA
curl_close ($curl_handle);
$file=fopen ($filename. “Response.xml„, “w+");
fwrite ($file, $result);
fclose ($file);
eco $result;
? >
PHP
$header [] = “Soddisfare-tipo: testo/xml„;
URL dell'obiettivo di //
$sendTo = $url;
Dati dell'alberino di //
$post = data_string;
// genera il collegamento dell'ARRICCIATURA
$ch = curl_init ();
curl_setopt ($ch, CURLOPT_USERAGENT, “XtraDoh xAgent ");
curl_setopt ($ch, CURLOPT_URL, $sendTo);
curl_setopt ($ch, CURLOPT_TIMEOUT, 900);
curl_setopt ($ch, CURLOPT_CONNECTIONTIMEOUT, 30);
curl_setopt ($ch, CURLOPT_FAILONERROR, falsi);
curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, allineano);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, allineano);
curl_setopt ($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt ($ch, CURLOPT_POST, allineano);
curl_setopt ($ch, CURLOPT_POSTFIELDS, $post);
$result1 = il curl_exec ($ch) o muoiono (“ci è stato un errore di CURL_EXEC„);
eco $result1;
? >
|