Reply to SOAP, SSL and PHP5

Your name:

Reply:


Posted by David Haynes on 10/19/05 00:26

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("http://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".$client->__getLastRequest()."\n";
echo "Response:\n".$client->__getLastResponse()."\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-

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация