问题
I'm trying to set up a SOAP service using Zend_Soap_Server. (ZF1)
My problem is that the WSDL URI is password protected. It can be accessed by setting 'https://username:password@wsdl.uri' as the URI, but the username and password are different for the development and live versions of the application.
I've tried setting the login and password with $soapServer->setOptions(array('login'=>$login, 'password'=>$password)); but nothing happens.
How can I achieve this? (if it's possible)
回答1:
The documentation of the SoapClient doesn't mention username and password authentication (htpasswd), so I assume that this type of authentication is not possible.
来源:https://stackoverflow.com/questions/14195890/zend-soap-server-wsdl-uri-with-http-authentication