Topic Index
In simple terms, Web Services allow software to communicate using a standardized XML messaging system over the Internet.
Like many Web technologies, the World Wide Web Consortium has taken a leading role in defining the set of technologies enabling Web services
Typical Web services include
Microsoft has made the construction of Web Services relatively easy with the use of Visual Studio 2008. Spend some time at (MSDN Web Services) and read up on the underlying technologies needed to support Web Services.
There are two fundamental roles when working with Web services:
Create a simple web service to return the time of day
U:\Day6\Day6WS
Service.asmx file and a corresponding C# code behind file
GetTime
GetTime method to return the current time as a string
DateTime.Now.ToShortTimeString();
Service.asmx file and select View in Browser
Add a Web site to your solution to consume your simple service
U:\Day6\Day6WebSite in your current solution
Day6WebSite web site project and Add Web Reference to your project
Service Web service
default.aspx page and add a button and a label to the page
GetTime() method
Normally one is expected to pay for a Web service. However, there are a number of free Web services provided by the Web that we can use to practice using a external Web service.
TerraService is another popular free Web service is available at http://terraserver-usa.com/TerraService2.asmx
Page last modified on April 03, 2008, at 11:25 AM