Home »
Imported messages »
comp.lang.php »
PHP SoapClient?
Re: PHP SoapClient? [message #185419 is a reply to message #185418] |
Sun, 30 March 2014 07:41 |
J.O. Aho
Messages: 194 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 30/03/14 04:40, Kevin Burton wrote:
> I pass the following options to the SoapClient (attempting to establish an SSL connection):
>
> $ssl_opts = array('local_cert' => $certinfo,
> 'verify_peer' => true);
>
> Then merge them in with the other SoapClient parameters like 'typemap' and 'classmap'.
> This gives me the error that the WSDL cannot be loaded from the path.
> If I take this same path and feed it to a Chrome browser I get a
WSDL, so the file is getting served.
> Also when I supply a non SSL URL (http://. . . . . rather than https://. . . . .) to the SoapClient
> constructor without the SSL options everything works fine. Any ideas what will work to connect to an SSL site?
This looks like issues to verify the certificate. It's easier if you
would check the error message to really see what is wrong, at least add
something like in the examples in:
http://www.php.net/manual/en/function.is-soap-fault.php
but things to start with:
Is the certificate self signed?
Then you need to set the allow_self_signed
also, do you cafile set?
You may need to download one. http://curl.haxx.se/ca/cacert.pem could
work (seen some people use it, but can't say if it's up to date).
--
//Aho
|
|
|
Goto Forum:
Current Time: Wed Nov 27 20:40:32 GMT 2024
Total time taken to generate the page: 0.04499 seconds