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


Groups > comp.lang.php > #13290

Re: PHP SoapClient?

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From "J.O. Aho" <user@example.net>
Newsgroups comp.lang.php
Subject Re: PHP SoapClient?
Date Sun, 30 Mar 2014 09:41:57 +0200
Lines 35
Message-ID <bpq065Fjh0nU1@mid.individual.net> (permalink)
References <b9355355-34ac-4b0d-8b35-5b6c6a84cba2@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Trace individual.net RTYU/ijrlbakX8CUGHoQ7QGbHeNnIDmg/bCIq8bkeqM+mavRA8
Cancel-Lock sha1:NZhBtbbewVvRWb/YaQjsYcNOb9A=
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0
In-Reply-To <b9355355-34ac-4b0d-8b35-5b6c6a84cba2@googlegroups.com>
Xref csiph.com comp.lang.php:13290

Show key headers only | 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