Unable to connect to Web Service
-
Hi, I am trying to access a webservice over the internet and getting the following exception. 'A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond ' . I am trying to access the web service with the help of following code and getting the above exception. protected void Page_Load(object sender, EventArgs e) { GlobalWeather gw = new GlobalWeather(); string cities =gw.GetCitiesByCountry("India"); } Please help.
-
Hi, I am trying to access a webservice over the internet and getting the following exception. 'A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond ' . I am trying to access the web service with the help of following code and getting the above exception. protected void Page_Load(object sender, EventArgs e) { GlobalWeather gw = new GlobalWeather(); string cities =gw.GetCitiesByCountry("India"); } Please help.
I think you will get help better if you posted this question to the ASP.NET forum
M. Gouda foreach(Minute m in MyLife) { myExperience++; }
-
Hi, I am trying to access a webservice over the internet and getting the following exception. 'A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond ' . I am trying to access the web service with the help of following code and getting the above exception. protected void Page_Load(object sender, EventArgs e) { GlobalWeather gw = new GlobalWeather(); string cities =gw.GetCitiesByCountry("India"); } Please help.
Are you certain that the web service is running? Do you have the proper URL and permissions to access the WS? Try updating your web reference... does it work? If not, you either have an incorrect URL or the WS is down. If it does, then make sure the new Web Reference exports such a call. Let me know if you figure it out (or if both the WS responds to the update AND that method is exported).
Sounds like somebody's got a case of the Mondays -Jeff
-
Hi, I am trying to access a webservice over the internet and getting the following exception. 'A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond ' . I am trying to access the web service with the help of following code and getting the above exception. protected void Page_Load(object sender, EventArgs e) { GlobalWeather gw = new GlobalWeather(); string cities =gw.GetCitiesByCountry("India"); } Please help.
You are getting a general communication error, so it could be any number of things. Go through the basic diagnostics first: can you ping the web service server from where your code is running? Try also to load the web service URL in your browser, if it's http based.
-
Hi, I am trying to access a webservice over the internet and getting the following exception. 'A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond ' . I am trying to access the web service with the help of following code and getting the above exception. protected void Page_Load(object sender, EventArgs e) { GlobalWeather gw = new GlobalWeather(); string cities =gw.GetCitiesByCountry("India"); } Please help.