Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connect to a WSDL with C#
Message
Information générale
Forum:
ASP.NET
Catégorie:
Web Services
Divers
Thread ID:
00760200
Message ID:
00760204
Vues:
16
Hi Alex,

The URL is not valid for me for the wsdl file. I tried:

www.xmethods.com/TemperatureService.wsdl

With .NET, you register the web site in the Solutions manager then you reference the web service class at the top of your code file (.vb or .cs). After that, you can reference the web service like using any other class.

For a sample you can refer to my Web Service example that uses FoxCentral.net as a web service in .NET. You can find the white paper (called "Using ASP.NET in Visual Studio .NET with Visual FoxPro") and sample downloads at:

http://gotdotnet.com/team/vfp/


>I'm trying to learn C#. This a first try with a simple web service.
>
>I want to say:
>rootNode = ws.getTemp(txtZIPCode.Text);
>
>to consume the web service and get a temperature from a US ZIP Code. But I could not get the ws variable properly defined to connect to:
>www.xmethods.com / TemperatureService.wsdl
>
>I tried:
>ws = new net.xmethods.www/TemperatureService.wsdl
>but does not seem to work. I tried from VFP8 and the service works very well.
>
>How do I write the ws = new definition?
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform