问题
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