Zend SOAP server WSDL URI with http authentication

只谈情不闲聊 提交于 2019-12-13 01:17:52

问题


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

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