View Full Version : PHP SOAP Request Error

07-10-2012, 02:19 AM
$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"));

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

07-10-2012, 10:02 AM
mail.glyn.surrey.sch.uk is not a valid url

07-10-2012, 07:51 PM
It is but only works with SSL. https://mail.glyn.surrey.sch.uk