Php Soap client add .pem file not working .. SOAP UI process attached for more details

+1 vote
652 views
asked Nov 25, 2016 in General by srinivasulu_yagnam (180 points)

Thanks in advance.. I have Attached all images for  the process of doing with SOAP UI. I got results with SOAP but same i need to do it with php code.. I have written php code by adding the soap header security multiple ways.  

PHP  Code:

$wsdl = 'http://192.168.5.234:3333/AuthWSSecurity/services/AuthHelloWS?wsdl'; 
$local_cert = 'client_load.pem'; 
$passphrase = 'password'; 
$client = new SoapClient($wsdl, array('trace'=>true, 'exceptions'=>true, 'local_cert' => $local_cert, 'passphrase' => $passphrase)); 
$request = array( 
"name" => 'welcome' 
); 
$results = $client->authHelloWS($request); 
var_dump($results); 

Result:  
Fatal error: Uncaught SoapFault exception: [wsse:InvalidSecurity] Missing wsse:Security header in request in D:\wamp\www\soap\test\test_new_soap.php:98 Stack trace: #0 D:\wamp\www\soap\test\test_new_soap.php(98): SoapClient->__call('authHelloWS', Array) #1 D:\wamp\www\soap\test\test_new_soap.php(98): SoapClient->authHelloWS(Array) #2 {main} thrown in D:\wamp\www\soap\test\test_new_soap.php on line 98

1 Answer

0 votes
answered Nov 28, 2016 by Rob
Looks like you need to do a lot of troubleshooting yourself with these. Problems can be anything. There are numerous things to figure out, many will be just related to server. Please go ahead and invest sometime digging this out. Sorry, at present I'm not able to help you with this much.

Good luck bud! and happy coding...

Related questions

0 votes
2 answers 136 views
asked Nov 24, 2016 in General by srinivasulu_yagnam (180 points)
0 votes
1 answer 412 views
0 votes
1 answer 298 views
+1 vote
1 answer 50 views
+2 votes
1 answer 50 views
asked Feb 9 in General by Marc Lentin
0 votes
0 answers 190 views
asked Aug 19, 2016 in General by Shed
...