Asp.net slide9

22 193 0
Tài liệu đã được kiểm tra trùng lặp
Asp.net slide9

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Asp.net slide

Session 17Basics of Web Services Exploring ASP.NET / Session 17 / 2 of 20ReviewControls help in reusability of visual as well as functional capabilities.Custom web controls can be created in two ways:PageletsWeb Controls using C#Pagelets are custom controls that look like an asp page, and have the extension .ascx. Web Controls render HTML automatically.Custom Controls, which compose of other controls as well, are known as composite controls.The System.Web.UI.INamingContainer interface has no methods; it is used by ASP.NET to create unique IDs. Exploring ASP.NET / Session 17 / 3 of 20ObjectivesExplain Web ServicesCreate Web Services using ASP.net Consume Web Services using various protocolsCreate proxies for Web ServicesUnderstand the role of UDDI Exploring ASP.NET / Session 17 / 4 of 20Internet without Web Services Exploring ASP.NET / Session 17 / 5 of 20ServiceService has to be registered in a registry for access to usersA service can be called from another program using interfaceService Exploring ASP.NET / Session 17 / 6 of 20Internet with Web ServicesWeb ServerWeb ServerWeb ServerConstellationSites, services, and devices collaborateand provide rich user experience Exploring ASP.NET / Session 17 / 7 of 20Create a Web serviceDefine service interface and invocation methods for Web servicesPublish Web services on Intranet or InternetFind Web service in order to use itInvoke the web service in order to use itUnpublish the web service when it is not needed Activities related to Web Service Exploring ASP.NET / Session 17 / 8 of 20Accessed over the webCalled using its InterfaceRegistered in a service registryStandard Web protocols to communicateLoose couplingAn important aspect of loose coupling is that Web services are integrated just-in-time when they are necessary. Web Service Characteristics Exploring ASP.NET / Session 17 / 9 of 20 Cross business integration Improved efficiency Closer customer relationships Facilitation of just-in-time integration Complexity reduction Legacy applications Advantages of Web Services Exploring ASP.NET / Session 17 / 10 of 20Potential risk of security in exposing the application assets of an organization XML support is inevitableCost of deploying the Web service technology is slightly highDisadvantages of Web Services [...]... Proxies Exploring ASP.NET / Session 17 / 12 of 20 HTTP - GET Exploring ASP.NET / Session 17 / 13 of 20 HTTP - POST Calling a web service using the POST method Enter your name : Exploring ASP.NET / Session... in ASP.NET Save the file with asmx extension Language in which the Web service is written Specifies that this asp page is a web service Class containing Web methods namespace using System.Web.Services; class TestWS { [WebMethod] public string SayHello(string name) { return "Hello " + name; } } Import namespace directive Indicates a Web method Exploring ASP.NET. .. values Offers platform independence Exploring ASP.NET / Session 17 / 15 of 20 WSDL - Web Service Description Language Information about the web service, such as the methods it contains, and the parameters that need to be passed to these methods, are described through WSDL language  Based on XML  Uses tags to define attributes of the service Exploring ASP.NET / Session 17 / 16 of 20 Web Service Proxies... /r:System.Web.Services.dll TestWS.cs Exploring ASP.NET / Session 17 / 17 of 20 Calling a Web Service Using the Proxy public void Page_Load(Object Sender, EventArgs e) { FirstWS.TestWS WSObj = new FirstWS.TestWS(); Text1.Text = WSObj.SayHello("Scooby"); } Exploring ASP.NET / Session 17 / 18 of 20 UDDI 1-2 Helps... a particular Web service Technical details about exposing a particular Web service Companies offering a particular Web service Exploring ASP.NET / Session 17 / 19 of 20 UDDI 2-2 UDDI Specifications (Business Registrations) UDDI API Schema UDDI Services Exploring ASP.NET / Session 17 / 20 of 20 Summary 1-2       A service has two characteristics: Interface and Registration Web services reduce... notifies the ASP.NET compiler that the method to follow should be a Web method, which is to be exported onto the Web A Web service could be called from a browser, an ASP page or even another Web service Using the browser, the Web service can be accessed using either HTTP-GET or HTTP-POST A SOAP request from an ASP page or a Web service to another Web service can also be made Exploring ASP.NET / Session... Integration UDDI helps in registering the services provided by the service providers so that they can be shared It also helps the service consumers or Web users in locating the Web services Exploring ASP.NET / Session 17 / 22 of 20 . is used by ASP. NET to create unique IDs. Exploring ASP. NET / Session 17 / 3 of 20ObjectivesExplain Web ServicesCreate Web Services using ASP. net Consume. ServicesUnderstand the role of UDDI Exploring ASP. NET / Session 17 / 4 of 20Internet without Web Services Exploring ASP. NET / Session 17 / 5 of 20ServiceService

Ngày đăng: 15/11/2012, 14:44

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan