AdjustAccountRequest 1 1 1 Event Macrosky Libertis2 ? 1245211$serial 06260636 2 cloud Macrosky 2000 -20000 EOD; // The HTTP headers for the request (based on image above) $headers = array( 'Content-Type: text/xml; charset=utf-8', 'Content-Length: '.strlen($mySOAP), 'SOAPAction: '.$action ); // Build the cURL session $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, TRUE); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_POSTFIELDS, $mySOAP); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); // Send the request and check the response if (($result = curl_exec($ch)) === FALSE) { die('cURL error: '.curl_error($ch)."
\n"); } else { echo "Success!
\n"; } curl_close($ch); // Handle the response from a successful request print_r($result); $xmlobj = simplexml_load_string($result); var_dump($xmlobj); ?>