I need to create a PHP, SOAP API. I need to authenticate a SOAP client from a SOAP server. This is the SOAP client code.
$client = new SoapClient("cust.wsdl",array( "trace" => 1, "exceptions" => 0, "user" => 'username', "pass" => 'password')); $result = $client->getDetails($value1);
I need to commit and verify this username and password from the server (SOAP SERVER). This is my SOAP server code
class getDb { //return DATA } $server = new SoapServer("cust.wsdl"); $server->setClass("getDb"); $server->handle();
I need to check the username and password of the user on the SOAP server.
Does anyone know how to capture the SOAP username and password ("user" => "username", "pass" => "password") from SOAPSERVER, please provide.
source share