Bonjour,
Je suis debutant sous c# 1.1 avec visualt studio 2003 et j'essayes d'utiliser un web service se trouvant ici :
http://www.webservicex.net/WS/WSDeta...TID=12&WSID=56
Pour ce faire, j'ai donc cree un projet asp net c# et inserer la web reference de cette adresse
http://www.webservicex.net/globalweather.asmx?WSDL
ensuite comme code pour utiliser les deux methodes :
GetCitiesByCountry
GetWeather
je fais :
mais quand j'execute le tout il me dit :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 UseWeatherService.WebWeather.GlobalWeather gw = new UseWeatherService.WebWeather.GlobalWeather(); string w = gw.GetWeather("Bruxelles", "Belgium"); Label1.Text = w;
The underlying connection was closed: Unable to connect to the remote server.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.WebException: The underlying connection was closed: Unable to connect to the remote server.
Il me dit que la connection avec le serveur est ferme !
Ouais j'ai regarde sur le site mais y'a pas plus d'infos pour utiliser ce webservice si quelqu'un a une idee je l'en remercie
Bonne journée
Christophe
Partager