...

View Full Version : PHP SOAP Request Error



jrote1
07-10-2012, 02: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

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

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum