HTTP 身份验证和 SOAP 请求
是否有任何解决方案可以调用受 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以添加 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.