我有一个像这样创建的肥皂服务器:
class ServerController extends Zend_Controller_Action
{
public function serverAction()
{
memcache_flush();
Zend_Registry::get('cache')->clean(Zend_Cache::CLEANING_MODE_ALL);
$server = new SoapServer("http://####/services/soap-server/wsdl");
$server->setClass('SOAP_Server_Map');
$server->handle();
}
}
Run Code Online (Sandbox Code Playgroud)
我想为它添加身份验证,以便每当有人调用" SOAP_Server_Map"中的函数时,它会检查SoapClient选项数组中提供的凭据('login'和'password')是否有效.
有没有人有任何建议/帮助?