News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Ldeveloper Tech Blog:
PHP - Fatal error Uncaught SoapFault exception Could not connect to host...
August 12, 2011 @ 11:38:04

On the Ldeveloper Tech Blog today there's a helpful new post about an error PHP's SOAP extension could throw about not being able to connect to the host despite all settings being correct.

I receive this nasty error yesterday and it took me some time to figure out the problem: "Fatal error: Uncaught SoapFault exception: [HTTP] Could not connect to host in...". This ["new SoapClient"] line passes without any problems and this [var_dump on __getFunctions] shows the function prototypes correctly.

His script connects to the service as its supposed to but the "could not connect" is still thrown. He found a few references to OpenSSL issues that could cause it, but his code was correct so he turned to the other side - the service itself. As it turns out, it wasn't configured correctly.

It was configured to send invalid url and the function calls were using that invalid url. So there are two solutions [...] the first is to configure the server correctly. The other is to give __doReguest the correct location.
0 comments voice your opinion now!
soap connect host openssl service remote error


blog comments powered by Disqus

Similar Posts

Rob Allen's Blog: Zend Framework, IIS and 500 errors

Symfony Blog: Symfony 2.3.0, the first LTS, is now available

PHP Manual Masterpieces: I Can't Spell PBKDF

Christopher Kunz's Blog: PHPShield, SourceGuardian and Inovica Ltd.

Community News: Training Class for SOAP/WS-Security in the Enterprise


Community Events





Don't see your event here?
Let us know!


refactor developer testing laravel experience opinion unittest list framework introduction podcast series community install threedevsandamaybe release configure code interview language

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework