function getQuote($symbol) {
global $quotes;
return $quotes[$symbol];
}
$soap = new DOMDocument();
$soap->load('php://input');
$server = new SoapServer("stockquote.wsdl");
$s = new WSSESoapServer($soap);
try {
if ($s->process()) {
$server->addFunction("getQuote");
$server->handle($s->saveXML());
exit;
}
} catch (Exception $e) {
/* Any exception handling */
}
$server->fault(8, "Invalid Signature");
?>
Unfortunately it doesn't help me
can anyone post a full client/server example please?
Thank you all very much for attention
-Gianluca-
GEORGE OGALO
unread,
Jun 27, 2015, 9:42:04 AM6/27/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to wse...@googlegroups.com
Hi,
Did you ever get server/client example? Thanks
Rob
unread,
Jul 3, 2015, 8:45:20 AM7/3/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to wse...@googlegroups.com, donarm...@gmail.com
I haven't had a chance to write a server example but really don't recommend PHP for use when requiring a SOAP server that's using more complex functionality such as ws-security. It's typically seen with complex workflows where Java or .NET are better suited. Do you have any specific case where you really require a SOAP server in PHP?
Rob
Marcus Frenkel
unread,
Jul 18, 2017, 11:07:01 AM7/18/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to wse-php
Hi Rob,
I think many people would greatly appreciate if you a create soap server example compatible to the existing soap-sign-encrypt.php example.
You are doing a tremendous work. After WSO2 WSF has been abandoned, you are the only hope for a PHP WS-Security lib. Please keep up the good work.
Thanks a million!
Rob
unread,
Jul 18, 2017, 11:10:49 AM7/18/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to wse-php
Was not aware of that. I will see what I can do time permitting.