如何在 NuSoap 中禁用外部架构下载

发布于 2024-10-14 23:29:47 字数 346 浏览 3 评论 0 原文

我们的系统之一依赖于用 PHP 实现的遗留应用程序,该应用程序使用 NuSoap 来查询一些 SOAP Web 服务。

每当它尝试连接到 Web 服务时,它也会尝试从 http://schemas.xmlsoap.org/soap/encoding/ 我们注意到在过去几天该网站出现了一些间歇性中断,并且这会导致 Web 应用程序失败,即使它使用的 Web 服务工作正常。

无论如何,我们是否可以配置(或修补)NuSoap 以禁用针对该外部资源的验证?

One of our systems depends on a legacy application implemented in PHP, that uses NuSoap to query some SOAP webservices

Whenever it tries to connect to a webservice it also tries to download the schema from http://schemas.xmlsoap.org/soap/encoding/ and we have noticed that in the last few days that website has had some intermitent outages, and that causes the webapp to fail, even when the webservices that it consumes are working fine.

Is there anyway we can configure (or patch) NuSoap to disable the validation against that external resource?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

轮廓§ 2024-10-21 23:29:47

The encoding style is set by default to http://schemas.xmlsoap.org/soap/encoding/. This is pre-set by NuSOAP as the SOAP-ENC element of the public array called namespaces. To change it, simply include a line in your script like:

$namespaces[SOAP-ENC] = 'http://my.special.encoding';

For more info see: http://developer.apple.com/internet/webservices/soapphp.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文