WsaSoapClient
extends SoapClient
to add support for web services that require Web Services Addressing (WS-A) and WSSE authentication.
The example below connects to a web service using WSSE authentication and calls the GetSomething
method:
$wsdl = "https://my.example.com/MyWebService?wsdl";
$options = array
(
'login' => 'my_username',
'password' => 'my_password'
);
$client = new \Mesmotronic\Soap\WsaSoapClient($wsdl, $options);
$result = $client->GetSomething(array("foo"=>"bar"));
If you find this project useful, why not buy us a coffee (or as many as you think it's worth)?