Extending php SoapClient for siteminder authentication

眉间皱痕 提交于 2019-12-04 08:17:43

If it's just a matter of supplying the .pem file, have you looked into the local_cert option for the SoapClient constructor? That client object should then retain any cookies set for the session. If you need to persist the cookies across sessions too, you could always read them out of the response (use __getLastResponseHeaders) and then use __setCookie to set them again next time.

Or you could just have your proxy replace the relative paths with absolute paths. The wsdl is itself an XML document, after all.

Or you could turn your proxy into an actual proxy and use the proxy_host, proxy_port, proxy_login and proxy_password options.

The answer to this head scratching, hair pulling problem can be found here:

http://rabaix.net/en/articles/2008/03/13/using-soap-php-with-ntlm-authentication.

Thanks to Jeffery Fernandez on the php soap mailing list who pointed this out.

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