1
我有Visual Studio 2010中,使用C#中使用Web服務,我想這個Web服務添加到我的網站: http://www.webservicex.net/geoipservice.asmx如何從淨
我添加Web引用爲「getip」 和我代碼是
protected void Page_Load(object sender, EventArgs e)
{
getip.GeoIPService yourip = new getip.GeoIPService();
Label4.Text = yourip.GetGeoIPContext().ToString();
}
但是,當網站加載出現在我的標籤的唯一的事情就是「getip.GeoIP」
非常感謝你。我猜現在它可以工作,但不幸的是,我從網站服務的網站已關閉.... LOL! – celticharp 2011-02-07 00:22:28