static void Main(string[] args) { Console.WriteLine("Hello World!"); var binder = new BasicHttpBinding(); binder.UseDefaultWebProxy = false; binder.ProxyAddress = new Uri("http://DEFAULTPROXY:8080"); var remoteAddress = new EndpointAddress("http://www.webservicex.net/whois.asmx"); var client = new whoisSoapClient(binder, remoteAddress); var response = client.GetWhoIS("microsoft.com"); }
protected void Button1_Click(object sender, EventArgs e) { whoisSoapClient client = new whoisSoapClient("whoisSoap"); LabelResult.Text = client.GetWhoIS(TextBox1.Text); }
public ActionResult Whois(string hostName) { var client = new whoisSoapClient("whoisSoap"); ViewBag.Data = client.GetWhoIS(hostName); return View(); }
public async Task <string> GetWhoIsForHostNameAsync(string hostName) { var client = new whoisSoapClient(new BasicHttpBinding(), new EndpointAddress(_url)); return(await client.GetWhoISAsync(hostName)); }