Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #13290

Re: PHP SoapClient?

From "J.O. Aho" <user@example.net>
Newsgroups comp.lang.php
Subject Re: PHP SoapClient?
Date 2014-03-30 09:41 +0200
Message-ID <bpq065Fjh0nU1@mid.individual.net> (permalink)
References <b9355355-34ac-4b0d-8b35-5b6c6a84cba2@googlegroups.com>

Show all headers | View raw


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

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

PHP SoapClient? Kevin Burton <ronald.kevin.burton@gmail.com> - 2014-03-29 19:40 -0700
  Re: PHP SoapClient? "J.O. Aho" <user@example.net> - 2014-03-30 09:41 +0200
  Re: PHP SoapClient? Kevin Burton <ronald.kevin.burton@gmail.com> - 2014-03-30 06:35 -0700
  Re: PHP SoapClient? white.joseph78@gmail.com - 2014-05-28 08:48 -0700

csiph-web