Presentation is loading. Please wait.

Presentation is loading. Please wait.

ASP.NET Web Forms and Web Services

Similar presentations


Presentation on theme: "ASP.NET Web Forms and Web Services"— Presentation transcript:

1 ASP.NET Web Forms and Web Services
Mike Taulty Developer & Platform Group Microsoft Ltd

2 Agenda Architectural Overview Web Services Web Forms
How ASP.NET works to handle HTTP requests Web Services Web Forms

3 Serving up HTTP Internet Information Server
Worker Process Worker Process ASP.NET ISAPI CLR Application Domain WWW Service Config Mgr Process Mgr INETINFO metabase ISAPI Extension ISAPI Filter Configure/Monitor HTTP.sys

4 ASP.NET Bridging IIS to the world of .NET code
ASP.NET ISAPI HttpHandler Web Services (.asmx) Web Pages (.aspx) Web Controls (.ascx) Custom (.?) Config HttpModule HTTP.sys

5 Writing Http Handlers

6 Agenda Architectural Overview Web Services Web Forms
How ASP.NET works to handle HTTP requests Web Services Web Forms

7 Distributed Web Services
Them Platform Data Representation Programming languages Protocols Description Discovery Discovery Description Packaging Data Protocol UDDI WSDL SOAP XML HTTP Us

8 Core Technologies SOAP <Envelope> <Header>
<ExtraInfo/> </Header> <Body> <Customer name=‘Mike’/> </Body> </Envelope>

9 Core Technologies WSDL <types…/> <message name=‘AddMsg’…/>
<portType name=‘Calculator’> <operation name=‘Add’> <input message=‘AddMsg’> <output…> </operation> </portType> <binding…/> <service…/>

10 ASP.NET Web Services Declarative model - .NET attributes control working .NET class methods exposed over web service protocols Key attributes WebMethod, WebService Developer writes an .ASMX file for a service which points to the class providing implementation Xml Serialization XML->Parameters->Return Values->XML SOAP messages automatically populated WSDL documents automatically created Tools for generating web service proxies

11 Creating and consuming ASP.NET Web Services

12 ASP.NET Web Services Delivering Xml messages to .NET class methods
ASP.NET ASMX Web Service Handler Web Service Class Web Method A Web Method B Web Method C First time compilation ASMX File Route to Method Invoke Method Return results After Xml serialization Before Xml serialization After Xml deserialization Before Xml deserialization Config Soap Extension

13 Agenda Architectural Overview Web Services Web Forms
How ASP.NET works to handle HTTP requests Web Services Web Forms

14 ASP.NET Server controls encapsulate behaviour
Provide VB-Like Model Support compiled languages VB, C#, JScript, COBOL, etc. Enable separation of code from content Developers and designers can work independently Support multiple clients automatically Rich DHTML, HTML 3.2, etc… Mobile controls for small devices

15 ASP.NET Page Execution Cycle
<html> <body> <form method="post" runat=server> Name: <asp:textbox runat=server/> </form> </body> </html> .ASPX Page LiteralControl Page TextBox HtmlForm Request.aspx Code Behind Control <html> </html> Generate Code Assembly Page txt form Compile (VB/C#) HTTP.sys

16 ASP.NET Page Execution Cycle
Assembly Page Ctl1 Ctl2 Changed? Re-use Cached? HTTP.sys Request.aspx

17 ASP.NET Web Forms

18 ASP.NET Application Services
Application & Session State Session state storage choice Caching Flexible data cache Parameterised output caching for pages and controls Data Binding Diagnostics Applicaton & Page Level tracing system Performance monitor counters Security Authentication and Authorization Configuration System

19 Resources Web Services Web Forms http://msdn.microsoft.com/webservices
Understanding web services specifications Web Services Enhancements 2.0 Web Forms

20 © 2004 Microsoft Limited. All rights reserved.
This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.


Download ppt "ASP.NET Web Forms and Web Services"

Similar presentations


Ads by Google