Sometimes , when you want to send critical information using SOAP, you need to use https protocol. WSF/PHP buildin support for this. All you need to do it to provide some simple options and configure the WSClient object.
Following is an example on how to do that.
The options used to configure ssl are
CACert, clientCert, and passphrase.
CACert is the Certificate authrity's certificate.
clientCert is the client's certificate.
passphrase is the password.
You can configure the WSClient object with these options when using ssl.
$client = new WSClient(array( "to" => "some endpoint uri",
"CACert" => "cacert.pem"));