How to create Basic Authentication in PHP with WSDL and SOAP API [closed]

半腔热情 提交于 2019-12-26 08:29:46

问题


I'm building a web service. I have WSDL url. But my problem, basic authentication. How can i this solve? I'm using SoapClient. I have to send XML request. So, which parameters must sending with SoapClient?

I need basic authenctication for all requests.

Thanks for support

That's my basic code

$request = new SoapClient($wsdl,array("trace" => 1,"exceptions" => 0));
$res = $request->getApplicationList($data);


print '<pre>';
print_r($res);
print '</pre>';

来源:https://stackoverflow.com/questions/59406119/how-to-create-basic-authentication-in-php-with-wsdl-and-soap-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!