FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » PHP SoapClient?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: PHP SoapClient? [message #185421 is a reply to message #185418] Sun, 30 March 2014 13:35 Go to previous messageGo to previous message
Kevin Burton is currently offline  Kevin Burton
Messages: 9
Registered: March 2014
Karma:
Junior Member
On Saturday, March 29, 2014 9:40:53 PM UTC-5, 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?
>
>
>
> I am using PHP 5.5.10 with SOAP and OpenSSL extensions enabled.
>
>
>
> Thank you for any help you may be able to offer.

Thank you for your help. I added the allow_self_signed => true because it is a self-signed certificate. But I get the same exception:

Exception - SOAP-ERROR: Parsing WSDL: Couldn't load from '(url)?WSDL' : failed to load external entity "(url)?WSDL"

I am catching the exception thrown which as I read the documentation is essentially the same as is_soap_fault.

If I don't pass any SSL arguments I get a SOAP Fault that I have passed invalid SOAP arguments. I am just trying to connect to an SSL endpoint. This seems to work when I use curl but these options don't seem to work using SoapClient.

Thanks again.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Add compiler to Page
Next Topic: Re: mysqli fetch_assoc() straight to array (-> comp.lang.php)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 03:27:27 GMT 2024

Total time taken to generate the page: 0.04590 seconds