Code: Select all
Here is script of the sample table in database. I have added a few records in the database for testing.
CREATE TABLE employees (
EmpNumber INT PRIMARY KEY,
EmpName VARCHAR(100)
);
Code: Select all
Code: Select all
$url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Content-Type: text/xml; charset=utf-8',
'Content-Length: ' . strlen($xml_post_string)
)
);
try{
$ch = curl_init(); # cURL initialization
curl_setopt_array($ch, $options);
$response = curl_exec($ch); # Execute the request
curl_close($ch); # Close cURL
echo $response; # Display the response
} catch (Exception $ex) {
echo "An exception has occured: ".$ex->getMessage();
}
?>
Code: Select all
Stimmt etwas mit dem Skript oder mit der Art und Weise, wie ich den Dienst nenne?>