HTTP 身份验证和 SOAP 请求

发布于 2024-10-08 17:31:07 字数 274 浏览 0 评论 0原文

是否有任何解决方案可以调用受 HTTP 身份验证保护的 SOAP 服务?

我正在使用此 wsdl 文件: https://www.smoneybox.com/service/service.wsdl

我尝试将 headerOut 添加到 SoapSerializationEnvelope 对象,但没有成功。 你能帮我吗?

米哈尔

Is there any solution to call SOAP services, which are secured with HTTP authentication?

I am working with this wsdl file: https://www.smoneybox.com/service/service.wsdl

I've tried to add headerOut to SoapSerializationEnvelope object, but without success.
Can you please help me?

Michal

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

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

发布评论

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

评论(1

站稳脚跟 2024-10-15 17:31:07

您可以添加 HTTP 标头元素,例如用户名和密码(这不安全)。

我通过将用户名和 API 密钥添加为 SOAP 标头的一部分来完成此操作。我不确定您的情况下如何实施网络服务。

Can you add HTTP header elements like username and password (Which is not secure).

I have done this by adding the username and API key as a part of the SOAP headers. I'm not sure how the web services are implemented in your case.

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