ASP.NET equivalent of this PHP code
- by moiz217
Please provide asp.net equivalent of this php code.
$ip = $_REQUEST['ip']?$_REQUEST['ip']:$_SERVER["REMOTE_ADDR"];
$client = new SoapClient(null, array(
'location' => "http://www.itistimed.com/soap/whois-city.php",
'uri' => "http://www.itistimed.com/soap/req"));
$data = $client->ipToCountryCity($ip);
var_dump($data);
Will display something like:
array(7) {
["status"]= int(1)
["status_text"]= string(7) "Success"
["country"]= string(2) "US"
["city"]= string(13) "Mountain View"
["state"]= string(2) "CA"
["zip"]= string(5) "94043"
["org"]= string(11) "Google Inc."}
thanks.