发送传出的请求之前绑定一个新SoapClient的一个特定的IP地址 [英] Binding a new SoapClient to a specific IP address before sending outgoing request

查看:857
本文介绍了发送传出的请求之前绑定一个新SoapClient的一个特定的IP地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设一台机器,其中应用程序坐在了SoapClient的(要具体,我使用Microsoft.Web.Service3.Messaging.SoapClient)。它通过发送传出的请求,作为回报,(成熟的过程)获得的SoapEnvelope向远程位置没有问题的通信。

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).

以上方案是通过分配到的IP 。机器凡申请是坐在

The above scenario is through the IP assigned to the machine where the application is sitting on.

现在,我需要修改这个过程 - 我们需要2个IP地址添加到机器,我需要绑定传出请求到特定的IP,而不是默认的IP。

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.

所以,在远程位置,它看起来好像是从同一台机器/应用程序接收来自3个不同的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.

如何绑定传出请求到一个特定的IP?这是在远程位置如何锁定了到特定帐户,通过一个IP,而不是一个登录(这是我的建议,和他们拒绝)。他们说,我们应该能够做到这一点(绑定到特定的IP),但我不知道如何与微软的SoapClient的对象做到这一点。

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.

有什么建议?

推荐答案

翻翻MSDN文档有它绑定到机器上的一个特定的IP地址没有任何手段。

Looking through the MSDN documentation there isn't any means of binding it to a specific ip address on the machine.

这篇关于发送传出的请求之前绑定一个新SoapClient的一个特定的IP地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆