jrote1
07-10-2012, 01:19 AM
<?php
$client = new SoapClient(null, array('location' => "https://07WoodS:ROFL@mail.glyn.surrey.sch.uk/EWS/Services.wsdl", 'uri' => "https://07WoodS:ROFL@mail.glyn.surrey.sch.uk/", 'login' => "07WoodS", 'password' => "ROFL", 'local_cert' => "glyn.pem"));
var_dump($client->UploadItemsSoapIn());
?>
The above code throws and error and I have been trying to fix it for a few days. Any help would be greatly appreciated.
The error is:
Fatal error: Uncaught SoapFault exception: [HTTP] Could not connect to host in C:\Glyn Portal\htdocs\soap.php:3 Stack trace: #0 [internal function]: SoapClient->__doRequest('<?xml version="...', 'https://07WoodS...', 'https://07WoodS...', 1, 0) #1 C:\Glyn Portal\htdocs\soap.php(3): SoapClient->__call('UploadItemsSoap...', Array) #2 C:\Glyn Portal\htdocs\soap.php(3): SoapClient->UploadItemsSoapIn() #3 {main} thrown in C:\Glyn Portal\htdocs\soap.php on line 3
Thanks in Advance
$client = new SoapClient(null, array('location' => "https://07WoodS:ROFL@mail.glyn.surrey.sch.uk/EWS/Services.wsdl", 'uri' => "https://07WoodS:ROFL@mail.glyn.surrey.sch.uk/", 'login' => "07WoodS", 'password' => "ROFL", 'local_cert' => "glyn.pem"));
var_dump($client->UploadItemsSoapIn());
?>
The above code throws and error and I have been trying to fix it for a few days. Any help would be greatly appreciated.
The error is:
Fatal error: Uncaught SoapFault exception: [HTTP] Could not connect to host in C:\Glyn Portal\htdocs\soap.php:3 Stack trace: #0 [internal function]: SoapClient->__doRequest('<?xml version="...', 'https://07WoodS...', 'https://07WoodS...', 1, 0) #1 C:\Glyn Portal\htdocs\soap.php(3): SoapClient->__call('UploadItemsSoap...', Array) #2 C:\Glyn Portal\htdocs\soap.php(3): SoapClient->UploadItemsSoapIn() #3 {main} thrown in C:\Glyn Portal\htdocs\soap.php on line 3
Thanks in Advance