Hi Alex,
The URL is not valid for me for the wsdl file. I tried:
www.xmethods.com/TemperatureService.wsdlWith .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.comwww.prenia.comWeblog: blogs.prenia.com/cathi