在发送传出请求之前将新的 SoapClient 绑定到特定 IP 地址
假设应用程序所在的计算机具有 SoapClient(具体来说,我正在使用 Microsoft.Web.Service3.Messaging.SoapClient)。 它通过发送传出请求并获取 SoapEnvelope 作为回报(完善的流程),与远程位置进行通信,没有任何问题。
上面的场景是通过分配给应用程序所在机器的IP来实现的。
现在,我需要修改这个过程 - 我们需要向机器添加 2 个 IP,并且我需要将传出请求“绑定”到特定 IP,而不是默认 IP。
因此,在远程位置,看起来好像正在接收来自 3 个不同 IP 的请求,但实际上全部来自同一台计算机/应用程序。
如何将传出请求绑定到特定 IP? 这就是远程位置通过 IP 而不是登录“锁定”特定帐户的方式(这是我的建议,但他们拒绝了)。 他们说我们应该能够做到这一点(绑定到特定的 IP),但我不确定如何使用 Microsoft 的 SoapClient 对象来做到这一点。
有什么建议么?
Let's say a machine where the application sits on has SoapClient (to be specific, I'm using Microsoft.Web.Service3.Messaging.SoapClient). It communicates toward a remote location with no problem by sending outgoing requests and getting SoapEnvelope in return (well-established process).
The above scenario is through the IP assigned to the machine where the application is sitting on.
Now, I need to modify this process - we need to add 2 more IPs to the machine, and I need to "bind" outgoing requests to a specific IP, rather than the default IP.
So, at the remote location, it appears as if it is receiving requests from 3 different IPs, but really all from same machine/application.
How do I bind outgoing requests to a specific IP? This is how the remote location "locks down" to a particular account, via an IP, not a login (which was what I suggested, and they declined). They said we should be able to do this (binding to a specific IP), but I'm not sure how to do this with Microsoft's SoapClient object.
Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看 MSDN 文档,没有任何方法可以将其绑定到计算机上的特定 IP 地址。
Looking through the MSDN documentation there isn't any means of binding it to a specific ip address on the machine.