Wrox Programmer Forums
.NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Web Services section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 9th, 2007, 04:29 PM
Authorized User
Join Date: May 2006
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to notrosh
Default Web Service Newbie

Hi Everyone,

I have a general question. I am trying to incorporate a webservice into a windows application. I would like to display the current weather from www.weather.com. I am not quite sure how to perform this operation. any help would be greatly appreciated.
Old January 9th, 2007, 08:38 PM
Friend of Wrox
Join Date: Jun 2003
Posts: 596
Thanks: 1
Thanked 3 Times in 3 Posts

Hi Notrosh,
You need to know the address of the web service.
In your windows project right click web references in your project explorer window and then click 'add web reference'
You will be provided with a dialogue that asks you to enter the address of the web service.
Provide a name for the web service and you are away.

This creates a proxy in your project that hanbdles all the details of SOAP, but you dont need to worry about that.

In your code you create a new instance of your proxy object by usaing the name you gave the web service when adding the reference.
MyWebService myservice = new MyWebService();
Then you can call any method provided by the service from the newly instanciated object myservice.

They say, best men are molded out of faults,
And, for the most, become much more the better
For being a little bad.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Web Service Consuming another web service CraigWhitfield EJB 0 January 10th, 2008 08:38 AM
Web Service ankesh13 ADO.NET 1 March 8th, 2007 11:12 AM
Web Service kumanan ASP.NET 1.0 and 1.1 Basics 0 December 7th, 2006 10:26 AM
Error to Add Web Reference from a Web service jdjbarrios ASP.NET 2.0 Professional 0 July 18th, 2006 02:58 PM
Service Oriented Web Service aldwinenriquez .NET Web Services 2 September 15th, 2005 03:25 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.