Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Apr 2012
    Posts
    14
    Thanks
    0
    Thanked 1 Time in 1 Post

    PHP SOAP Request Error

    PHP Code:
    <?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

  • #2
    Regular Coder
    Join Date
    Jan 2012
    Posts
    271
    Thanks
    2
    Thanked 65 Times in 65 Posts
    mail.glyn.surrey.sch.uk is not a valid url
    hey... it's a sig..

  • #3
    New Coder
    Join Date
    Apr 2012
    Posts
    14
    Thanks
    0
    Thanked 1 Time in 1 Post
    It is but only works with SSL. https://mail.glyn.surrey.sch.uk


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •