troubleshooting Question

soapclient call with tomcat 5.5 Self Signed Certificate

Avatar of ldhbeheer
ldhbeheer asked on
Java App ServersSSL / HTTPSPHP
6 Comments1 Solution1368 ViewsLast Modified:
I tried to connect to my wdsl service with php5 soapclient function. To port 80, no problem. But connecting to port 443 with a self signed certificate won't work.

I get no error returned from the wdsl service.
Maybe I am using the wrong cert.cer to connect ?

Can anyone help me with this ?
global $pir_soap_wsdl, $pir_soap_port, $pir_soap_options;
 
$pir_soap_wsdl = "https://172.27.66.48/SpringWebService/services/Version/";
$pir_soap_port = "443";
$pir_soap_options= array('local_cert'=>'./server.cer', 
'exeptions'=>'true','trace'=>'true');
 
 
// Gebruik de soap library 
uuse("soap");
 
// definieer client
$soapclient = new soapclient($pir_soap_wsdl, 'wsdl', $pir_soap_options);
// extra debugging optie(mogelijk niet noodzakelijk, zie uuse_soap.txt)
$soapclient->debug_flag = 1;
 
// extra encoding regel(niet noodzakelijk,zie uuse_soap.txt)
$soapclient->soap_defencoding = "utf-8";
 
// Aanroep SOAP server
$result = $soapclient->call("getVersion", "");
 
//Toon result
T_EO ($result);
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros