330 likes | 468 Views
Web Services (Chapter 23 in [1]). Outline. Introduction .NET Web Services Basics Simple Object Access Protocol (SOAP) Publishing and Consuming Web Services Session Tracking in Web Services. Objectives. In this chapter you will learn: What a Web service is. How to create Web services.
E N D
Outline • Introduction • .NET Web Services Basics • Simple Object Access Protocol (SOAP) • Publishing and Consuming Web Services • Session Tracking in Web Services
Objectives In this chapter you will learn: • What a Web service is. • How to create Web services. • The important part that XML and the XML-based Simple Object Access Protocol play in enabling Web services. • The elements that comprise Web services, such as service descriptions and discovery files. • How to create a client that uses a Web service. • How to use Web services with Windows applications and Web applications. • How to use session tracking in Web services to maintain state information for the client.
Link to the service description Links to the Web service’s methods Fig. 22.2 | ASMX file rendered in a Web browser.
Fig. 22.3 | Service description for our HugeInteger Web service.
Fig. 22.5 | Results of invoking a Web method from a Web browser.
Fig. 22.6 | .NET Web service client after a Web reference has been added.
Fig. 22.7 | Interaction between a Web service client and a Web service.
HugeInteger.cs (1 of 7)
HugeInteger.cs (2 of 7)
HugeInteger.cs (3 of 7)
HugeInteger.cs (4 of 7)
HugeInteger.cs (5 of 7)
HugeInteger.cs (6 of 7)
HugeInteger.cs (7 of 7)
Fig. 22.10 | Creating an ASP.NET Web Service in Visual Web Developer.
Fig. 22.16 | Solution Explorer after adding a Web reference to a project.
UsingHugeIntegerService.cs (1 of 8)
UsingHugeIntegerService.cs (2 of 8)
UsingHugeIntegerService.cs (3 of 8)
UsingHugeIntegerService.cs (4 of 8)
UsingHugeIntegerService.cs (5 of 8)
UsingHugeIntegerService.cs (6 of 8)
UsingHugeIntegerService.cs (7 of 8)
UsingHugeIntegerService.cs (8 of 8)