|
Posted by Peter Kraume on 03/19/07 15:18
Hi,
I want to access a Lotus Notes Database via SOAP.
PHP Version is 5.2.0, OpenSSL support is active (OpenSSL Version
OpenSSL 0.9.7e 25 Oct 2004)
But I get this error message:
Warning: SoapClient::SoapClient() [function.SoapClient-SoapClient]:
Unable to set private key file `test.cer' in
/abbreviated/soap-test/index.php on line 7
Warning: SoapClient::SoapClient() [function.SoapClient-SoapClient]:
failed to create an SSL handle in /abbreviated/soap-test/index.php on line 7
Warning: SoapClient::SoapClient() [function.SoapClient-SoapClient]:
Failed to enable crypto in /abbreviated/soap-test/index.php on line 7
Warning:
SoapClient::SoapClient(https://notes.domain.tld/samson/samain20.nsf/Partner?WSDL)
[function.SoapClient-SoapClient]: failed to open stream: Operation now
in progress in /abbreviated/soap-test/index.php on line 7
Warning: SoapClient::SoapClient() [function.SoapClient-SoapClient]: I/O
warning : failed to load external entity
"https://notes.domain.tld/samson/samain20.nsf/Partner?WSDL" in
/abbreviated/soap-test/index.php on line 7
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing
WSDL: Couldn't load from
'https://notes.domain.tld/samson/samain20.nsf/Partner?WSDL' in
/abbreviated/soap-test/index.php:7 Stack trace: #0
/abbreviated/soap-test/index.php(7):
SoapClient->SoapClient('https://notes.s...', Array) #1 {main} thrown in
/abbreviated/soap-test/index.php on line 7
Here is my code snippet:
<?php
$wsdl = 'https://notes.domain.tld/samson/samain20.nsf/Partner?WSDL';
$options = array(
'local_cert' => './test.cer',
);
$client = new SoapClient($wsdl, $options);
?>
The aquired the certificate with "openssl s_client -showcerts -connect
notes.domain.tld:443"
My question is now, wether I made a mistake or the SOAP server doesn't
work properly. But when I access the WSDL file via browser, I get a
valid XML file back.
Any ideas for me?
Thx
Peter
Navigation:
[Reply to this message]
|