Re: [SOAP] Problems with SoapClient and local_cert
| From: | Ivan Rodriguez | Date: | Thu, 25 Feb 2010 13:29:09 +0000 |
| Subject: | Re: [SOAP] Problems with SoapClient and local_cert | ||
| References: | 1 2 3 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-3061@lists.php.net to get a copy of this message | ||
Hello,
I solved the problem unifying certificate, certificate key and CAs in one
file, and now works well :-)
On Tue, Feb 23, 2010 at 9:07 PM, Ivan Rodriguez <epplestun@gmail.com> wrote:
> Thanks David
>
> The WSDL file works perfectly from local, so the problem is you said.
>
>
> On Tue, Feb 23, 2010 at 7:08 PM, David Zülke <david.zuelke@bitextender.com
> > wrote:
>
>> IIRC, SoapClient does *not* use the given cert and other auth details for
>> fetching the WSDL, only when making calls.
>>
>> Try downloading the WSDL and loading it from the local file system. If
>> that works, then that's the problem.
>>
>> - David
>>
>>
>>
>> On 22.02.2010, at 17:50, Ivan Rodriguez wrote:
>>
>> Hello,
>>>
>>> I'm trying to connect to a service that requires HTTPS authentication, I
>>> follow the steps of PHP manual doing this:
>>>
>>> $client = new
>>> SoapClient("https://IP/wsapis?swdl", array(
>>> 'trace' => true,
>>> 'local_cert' => 'C:\\myCert.pem',
>>> 'passphrase' => 'myPassphrase'
>>> ));
>>>
>>> But I can't access to remote file, when I try to connect I get this
>>> error:
>>>
>>> *PHP* Fatal *error*: Uncaught SoapFault exception: [*WSDL*]
>>> SOAP-*ERROR*: *Parsing
>>> WSDL*: Couldn't load from
>>> 'https://IP/*wsapis?wsdl*'
>>>
>>> Is necesary to have installed special libraries?
>>>
>>> Any ideas?
>>>
>>> Thanks.
>>>
>>
>>
>