SOAP, SSL and PHP5

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David Haynes

    SOAP, SSL and PHP5

    I am having a problem getting a SOAP connection to work and would
    appreciate any suggestions.

    The story so far:
    1. I can point my browser at the service site (https://10.0.1.1:1234/)
    and get a meaningful XML response.
    2. My php5 code looks like this:
    <?php
    $client=new SoapClient("htt p://localhost/xxx/wsdl/xxx.wsdl",
    array(
    'uri' => "https://10.0.1.1:1234/",
    'userName' => "xxx",
    'password' => "xxx",
    'trace' => 1,
    'exceptions' => 1
    )
    );
    $client->GetContents( );

    echo "Request:\n".$c lient->__getLastReque st()."\n";
    echo "Response:\n".$ client->__getLastRespo nse()."\n";
    ?>

    3. I have enabled the php_openssl.dll in my php.ini
    4. I have restarted apache
    5. I have checked that the ssl dlls are in c:\system32

    I get an 'Uncaught SoapFault exception: [HTTP] Could not connect to host
    ....' message from this code.

    Ideas?

    Thanks
    -david-

Working...