Server wsse example

769 views
Skip to first unread message

Gianluca Poli

unread,
Oct 26, 2011, 5:42:40 AM10/26/11
to wse-php
Hi everybody,

i am trying to use this library like u all, but i have problems
writing server.. i only found this little example:

<?php
require('soap-server-wsse.php');
$quotes = array(
"ibm" => 98.42
);

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
to wse...@googlegroups.com
Hi,

Did you ever get server/client example?
Thanks

Rob

unread,
Jul 3, 2015, 8:45:20 AM7/3/15
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
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
to wse-php
Was not aware of that. I will see what I can do time permitting.

Rob
Reply all
Reply to author
Forward
0 new messages