[line 107]
Storage driver for fetching login data from SOAP using the PHP5 Builtin SOAP functions. This is a modification of the SOAP Storage driver from Bruno Pedro thats using the PEAR SOAP Package.
This class takes one parameter (options), where you specify the following fields: * location and uri, or wsdl file * method to call on the SOAP service * usernamefield, the name of the parameter where the username is supplied * passwordfield, the name of the parameter where the password is supplied * matchpassword, whether to look for the password in the response from the function call or assume that no errors means user authenticated.
See http://www.php.net/manual/en/ref.soap.php for further details on options for the PHP5 SoapClient which are passed through.
Example usage without WSDL:
<?php
$options = array ( 'wsdl' => NULL, 'location' => 'http://your.soap.service/endpoint', 'uri' => 'urn:/Your/Namespace', 'method' => 'checkAuth', 'usernamefield' => 'username', 'passwordfield' => 'password', 'matchpasswords' => false, '_features' => array ( 'extra_parameter' => 'example_value', 'another_parameter' => 'foobar' ) );
$auth = new Auth('SOAP5', $options); $auth->start();
?>
Example usage with WSDL:
<?php
$options = array ( 'wsdl' => 'http://your.soap.service/wsdl', 'method' => 'checkAuth', 'usernamefield' => 'username', 'passwordfield' => 'password', 'matchpasswords' => false, '_features' => array ( 'extra_parameter' => 'example_value', 'another_parameter' => 'foobar' ) );
$auth = new Auth('SOAP5', $options); $auth->start();
?>