1 / 33

Web Services (Chapter 23 in [1])

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.

Télécharger la présentation

Web Services (Chapter 23 in [1])

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Web Services(Chapter 23 in [1])

  2. Outline • Introduction • .NET Web Services Basics • Simple Object Access Protocol (SOAP) • Publishing and Consuming Web Services • Session Tracking in Web Services

  3. 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.

  4. Fig. 22.1 | Web service components.

  5. Link to the service description Links to the Web service’s methods Fig. 22.2 | ASMX file rendered in a Web browser.

  6. Fig. 22.3 | Service description for our HugeInteger Web service.

  7. Fig. 22.4 | Invoking a Web method from a Web browser.

  8. Fig. 22.5 | Results of invoking a Web method from a Web browser.

  9. Fig. 22.6 | .NET Web service client after a Web reference has been added.

  10. Fig. 22.7 | Interaction between a Web service client and a Web service.

  11. HugeInteger.asmx

  12. HugeInteger.cs (1 of 7)

  13. HugeInteger.cs (2 of 7)

  14. HugeInteger.cs (3 of 7)

  15. HugeInteger.cs (4 of 7)

  16. HugeInteger.cs (5 of 7)

  17. HugeInteger.cs (6 of 7)

  18. HugeInteger.cs (7 of 7)

  19. Fig. 22.10 | Creating an ASP.NET Web Service in Visual Web Developer.

  20. Fig. 22.11 | Code view of a Web service.

  21. Fig. 22.12 | Adding a Web service reference to a project.

  22. Fig. 22.13 | Add Web Reference dialog.

  23. Fig. 22.14 | Web services located on localhost.

  24. Fig. 22.15 | Web reference selection and description.

  25. Fig. 22.16 | Solution Explorer after adding a Web reference to a project.

  26. UsingHugeIntegerService.cs (1 of 8)

  27. UsingHugeIntegerService.cs (2 of 8)

  28. UsingHugeIntegerService.cs (3 of 8)

  29. UsingHugeIntegerService.cs (4 of 8)

  30. UsingHugeIntegerService.cs (5 of 8)

  31. UsingHugeIntegerService.cs (6 of 8)

  32. UsingHugeIntegerService.cs (7 of 8)

  33. UsingHugeIntegerService.cs (8 of 8)

More Related