When sending SOAP messages to web services Integrity protection is crucial. That is the service invoker should be confident that his messages is not altered way through. The Problem is this useful facility does not offered by most of the PHP Web service frame works. WS02 WSF/PHP not only offers this facility but also in a really easy manner.
You need to add only the following lines to your web services client script to enable signature.
/*signers public key*/
$my_cert = ws_get_cert_from_file("location/of/the/key");
/*Telling the framework to sign the message body*/
$sec_array = array("sign"=>TRUE)
For more details on creating the PHP script see this .
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment