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=56Pour 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?WSDLensuite comme code pour utiliser les deux methodes :
GetCitiesByCountry
GetWeather
je fais :
UseWeatherService.
WebWeather.
GlobalWeather gw =
new UseWeatherService.
WebWeather.
GlobalWeather();
string w = gw.
GetWeather("Bruxelles",
"Belgium");
Label1.
Text = w;
mais quand j'execute le tout il me dit :
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
Pourtant si je vais sur le site et que je test les deux methodes elles fonctionnent parfaitement !
Bonne journée
Christophe