473,322 Members | 1,408 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

SOAP via SSL

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/sama...f/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
Mar 19 '07 #1
1 9054
Problem solved:
<?php
$wsdl = 'https://notes.domain.tld/samson/samain20.nsf/Partner?WSDL';
$client = new SoapClient($wsdl);
?>
There is no need to include the certificate!

Cheers
Peter
Mar 19 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: bigbinc | last post by:
I have setup a soap machine on linux and similar configuration works properly. on a windows mahcine, I get these erros on the addressbook, samples, any ideas. I am pretty sure my classpaths are...
2
by: Artur | last post by:
Hi Newsgroup, im currently working on programming a asp.net application consuming an Webservice hosted on Apache/Axis. I have generated WSDL and Proxy classes from VisualStudio.net. But when...
8
by: xmail123 | last post by:
Hi, As was pointed out whatever you return from a WebMethod needs to be serializable to SOAP. An ArrayList is not serializable. I will be needing to return other data types from web methods. ...
31
by: Bryan Dickerson | last post by:
Ok, simple question: from a VB.Net web service (as I've said before, I'm a newbie to SOAP), how would I get the SOAP body into a string? My boss and I concur that it, at least from our...
0
by: Jigar.Patel | last post by:
I have simple remoting server exposing following simple method. When I try to add webreference to this server in another project, it gives me following error: Custom tool error: Unable to import...
0
by: info | last post by:
Dear all, is the first time that I use SOAP, and i must say that i'm having several problems. this is SOAP message that expects the server =================XML EXPECTED FROM THE...
1
by: gcmartijn | last post by:
H! When I use php code nusoap everything works but with python I get everytime "Your session key does not exist or has expired" I use this code below: test =...
2
by: furrypop | last post by:
Hi, I'm trying to get the Perl SOAP::Lite examples to work on a Windows PC, running Apache 2.2.4. Apache is definitely serving CGI scripts, as I've tested a dummy Hello World thing. I'm also...
0
by: Philluminati | last post by:
I have a Perl SOAP Server which returns this SOAP Message when invoked: <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:xsi="http:// www.w3.org/2001/XMLSchema-instance"...
0
by: vigneshrao | last post by:
Hi, I have been working on a script that loops through multiple records and sends data (one record per call) to a WS. I am supposed to make a new call for each record before sending the data....
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.