发送soap请求时如何绑定ip地址?

时间:2021-05-18 12:39:53

标签: c# asp.net .net soapui

我需要在 c#.net web 应用程序中发送soap 请求时绑定一个特定的IP 地址。我该怎么做。

private static HttpWebRequest CreateWebRequest(string url)
{
     HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(url);
     webRequest.ContentType = "text/xml;charset=\"utf-8\"";
     webRequest.Accept = "text/xml";
     webRequest.Method = "POST";
     return webRequest;
}

0 个答案:

没有答案