Zend SOAP server WSDL URI with http authentication

2019-07-28 09:20发布

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条回答
你好瞎i
2楼-- · 2019-07-28 10:04

The documentation of the SoapClient doesn't mention username and password authentication (htpasswd), so I assume that this type of authentication is not possible.

查看更多
登录 后发表回答