professional documents
home
Profile
docsters
request
Blogs
Upload
about me
contact me
user photo
Mayur
submit clear
Powerpoint

Dot Net Presentation 5 center doc

System.Net package  The System.Net namespace provides a simple programming interface for many of the protocols used on networks today classes Cookie, CookieException Dns, DnsPermission HttpWebRequest, HttpWebResponse IPAddress, IPEndPoint, IPHostEntry  Various      System.Net.Socket Classes   Socket TcpClient    TcpListner UdpClinet Enumeration: ProtocolFamily,AddressFamily, ProtocolType. Web Services Overview Objectives  Background   Microsoft® .NET Framework Microsoft ASP.NET  Web Services    Overview Concepts and Architecture Design and Create Web Services Consume Web Services Contents  Section  Section  1: Overview 2: Architecture 3: Creating Web Services 4: Using Web Services 5: Advanced Web Services Microsoft .NET framework and ASP.NET  Section  Section  Invoking and consuming Web Services  Section  State Management, Security, and Transactions  Summary Section 1: Overview  “Looking  What are Back ...“ Web Services? Web applications  Distributed Looking Back ...  Traditional   distributed computing Client/server model Distributed object model   Components: packaging and interoperability Remoting: remote method invocation  COM, CORBA, Java RMI and EJB  Microsoft   Windows DNA DNA (Distributed interNet Application) Architecture DHTML, COM, ASP, Message Queuing What’s Wrong with That?  Distributed  object models don„t scale to the Internet Tightly coupling service and consumer   Need for homogeneous infrastructure Versioning problems  Limited COM  CORBA   support on non-Windows platforms is a remoting architecture CORBA Component Model Server object implementation not portable Web Services—Basics  An  XML Web service is a programmable entity that provides a particular element of functionality, such as application logic, and is accessible to any number of potentially disparate systems  Expose  services to other processes Internet or intranet  Black  boxes on the .NET Framework on open standards Component-like, reusable  Based  ASP.NET Web Services model  Based  HTTP, XML, and SOAP  Interconnect    Web Services—Basics Applications Different clients (M)any device  Distribution and integration of application logic are loosely coupled  Web Services  Ubiquitous  Universal  Valuable  Communication Data Format contribution of XML Web services Fundamental piece of functionality for its clients to use [ Some algorithm ] To integrate a seemingly disparate group of existing applications [ Isolated island of data and business logic ]  Distributed Web Applications Devices, Browsers Access Application Call Services Vertical and portal service Application Internet App-specific Web Service Building block Web Service OS and local services Web Services Contract Section 2: Architecture  The .NET Framework Architecture  Programming Model  Configuration The .NET Framework Architecture Microsoft .NET Framework ASP.NET Web Forms Web Services Services Framework Base Data Debug ... Windows Forms Common Language Runtime System Services Programming model Source Code Compiler CIL & Metadata Common Language Runtime Execution Engine Class Loader Class Lib JIT Compiler Execution Managed native Code Configuration  Concepts   and architecture Web.Config file Hierarchical configuration architecture  Influence on the actual directory and all subdirectories Root Dir Sub Dir1 Web.Config Sub Dir2 Configuration  Web.Config file    XML based File is kept within the application directory Default and custom configuration  Customized Web.Config file  WebServicesConfiguration   class Contains configuration information section in Web.Config Section 3: Creating Web Services  Basics of Creating Web Services Infrastructure  Web Services  Code and Syntax Namespace  Web Services  Publishing  Discovery Creating Web Services—Basics  .asmx file   Virtual path of ASP.NET Web application Stand-alone or part of an existing solution  Web Services  infrastructure Discovery, description, and wire format  Directories – Central location to locate XML Web services UDDI (Universal Description, Discovery, and Integration) registry fulfill this role. - Process of locating, or discovering using the Web Services Description Language (WSDL). DISCO specification - an algorithm for locating service descriptions.  Discovery  Description - To understand how to interact with a particular XML Web service, provide a service description To enable universal communication, XML Web services communicate using open wire formats, which are protocols understandable by any system capable of supporting the most common Web standards.   Communicate - HTTP-GET and HTTP-POST or SOAP Web Services Infrastructure Request .vsdisco Discovery Return disco (XML) Request WSDL Web Service Client Description Return WSDL (XML) Request .asmx Protocol Web Service Return response (XML) Code and Syntax  WebService  Directive Settings for ASP.NET compilers <%@ WebService Language=value Class=value %>  WebMethod  Code  Attribute Declaration Syntax <%@ WebService Class=“MyClass.MyWebService“ %> Outline  Inline (in C#) <%@ WebService Language=“C#“ Class=“MathService“ %> using System.Web.Services; public class MathService : WebService { [ WebMethod ] ... Sample .asmx file <%@ WebService Language=“C#“ Class=“MathService“ %> using System; using System.Web.Services; public class MathService { [WebMethod] public int Subtract(int a, int b) { return a - b; } public int Subtract_vs(int a, int b) { return b - a; } } System.Web.Services Namespace 1/2  WebService   Base class for Web Services Provides base functionality  For example, WebService.Session  WebServiceAttribute  Optional class to add additional information [ WebMethod ]  WebMethodAttribute   Makes a method a Web Service method System.Web.Services Namespace 2/2  WebServiceBindingAttribute   Interface in WSDL Set of operations  WebServicesConfiguration   Contains configuration information section in config.web  WebServicesConfigurationSectionHandler Publishing a Web Service  Expose  Create    Web Service and Web Service methods a Web Service proxy and an assembly Generate proxy with WSDL tool Create an assembly Enables developers to program against Web Services  Publish WSDL contract and HTML description  Web Service  clients Can be Web applications or browsers Discovery of Web Services  .vsdisco  file links to resources for retrieving WSDL XML-based file  containing    Stored in the server„s root directory Access via URL and dynamic discovery document Start discovering with the Disco tool  Automatically created by Visual Studio.NET  Global  directory of Web Services through UDDI Universal Discovery, Description, and Integration (http://www.uddi.org) Disco.exe  Discovering Web Services  Command-line example: disco /out:location /domain:domain /username:username /password:password http://localhost/WebService1/ WebService1.vsdisco WSDL.exe  Web Services  Description Tool Create client proxy class  Input:   URL of a WSDL file, Proxy language, and protocol Username and password  Output:  Single source file in specified language, containing:  Proxy  Code class for network invocation and marshalling wsdl /l:C# /protocol:protocol /out:filename /namespace:MathServiceSpace MathService.sdl Section 4: Using Web Services  Application Model  Invoking Web Services  Consuming Web Services  Web Services Description Language (WSDL) Application Model Web Service Developer Web Application Developer Web Server 1 asmx Service App .aspx Web Server 2 Proxy Web Form Service App Invoking Web Services  Web Services  are URL addressable HTTP request  Protocols  HTTP-GET  Method name and arguments in URL  HTTP-POST  Method name and arguments in POST body  HTTP-SOAP  XML   grammar for Addressing the Web Service Returning results Invoking: HTTP-GET and HTTP-POST http://server/appl/service.asmx/method?param=value  Standard  HTTP-GET Method name = PATHINFO  Method arguments = URL query string    Query string key = parameter name Multiple parameters Only primitive .NET runtime data types  Result is an XML document  Any .NET data type  HTTP-POST  Similar to GET, but with arguments in the form body Invoking: HTTP-SOAP  XML  grammar for all standard .NET data types and value classes Web Service method, method parameters, results  Supports  Additionally: classes, structs, datasets  Class  and struct marshalling Serialization in XML format Consuming Web Services  Request   without method name and parameters HTML description of Web Service Service capabilities, methods, protocols  Web Service  can return WSDL HTTP-GET, HTTP-POST, and HTTP-SOAP  Request    with parameter “?WSDL” Formal WSDL description of Web Service XML-based grammar Can be used as input for WebServiceUtil.exe WSDL 1/2  XML   grammar, defining: Services and ports that communicate via messages Binding   Specify a protocol or a data format for a message or a port Extensions for SOAP 1.1, HTTP GET/POST, and MIME  Public  description of a Web Service and its content WSDL contract  Core   Elements of WSDL service, port, and portType operations and messages WSDL 2/2  An abstract illustration of WSDL elements service_1 port_C port_B message service_2 port_D port_A message port type Sample WSDL file Section 5: Advanced Web Services  State Management  Security  Transactions  Execution Model Web Applications  Distributed State Management  Web Services  Use,  are stateless for example, ASP.NET session state to a logical application What is a session?  Restricted  Context in which a user communicates to a server identification and classification events  Functionality  Request  Store data across multiple requests  Session  Release of session data  .NET State Server Security Model  Reasons  for Security Prevent access to areas of your Web server  Record and store secure relevant user data  Security Configuration Impersonation .NET  Authentication, Authorization, Web Client IIS ASP.NET App OS  Code  Access Security Walks the call stack to check authorization Transactions 1/2  Like ASP.NET Web Forms Services  COM+   COM+ automatic transactions Atomic, consistent, isolated, durable (ACID) SQL Server Application Web Service COM+ transaction context Message Queuing Server Transactions 2/2  TransactionOption Property on WebMethod Attribute: [WebMethod(TransactionOption= TransactionOption.Required)]  Transaction Modes   Disabled Supported    NotSupported Required RequiresNew Execution Model  Synchronous  Like any other call to class methods  Asynchronous   .NET Framework design pattern Split the method into two code blocks   BeginMethodName EndMethodName  Client has to call Begin and End   Pass a callback function or WaitHandle class Using Web Services from UI  Completely separate  layout and processing logic Two (or more) files: .aspx and .aspx.cs or .aspx.vb .aspx .aspx.cs  Files  for designers and files for programmers Easy maintainability of your application Sample  .aspx <%@ Import Namespace=“MathServiceSpace“ %> ...  .asmx  WSDL file implements method “Add” file, returned by the ASP.NET runtime Sample  C# proxy class, generated by WSDL.exe [System.Web.Services.Protocols. SoapDocumentMethodAttribute(“http://tempuri.org/Add“)] public int Add(int a, int b) { object[] results = this.Invoke(“Add“, new object[] {a, b}); return (int)(results[0]); } ... public System.IAsyncResult BeginAdd(... public int EndAdd(... Summary  .NET Architecture Overview and ASP.NET  Web Services  Create and Publish Web Services Consume Web Services Proxy Classes  Invoke and  WSDL and  Program Against Web Services Questions A Simple Web Service ASP.NET QuickStart Tutorial ASP.NET QuickStart  What Is   It? Tutorial, ASP.NET samples Syntax, architecture, features  Installation  Install Microsoft .NET Framework SDK  Visual Studio.NET installation and Components Update  Installation of Visual Studio.NET is not mandatory  .NET  Framework Samples ASP.NET QuickStart  ASP.NET Web Services  Writing a Simple Web Service Building a Simple Web Service  Create  your own MathService class MathService and Web methods .asmx  Implement  Create WSDL file (MathService.wsdl)  Request to MathService.asmx  Generate C# proxy class (MathService.cs)  WebServiceUtil.exe  Generate Assembly (MathService.dll)  C# compiler “csc” Consuming a Simple Web Service  Implement MathService  client (MathServiceClient.aspx) ASP.NET UI  Operands  Text box  Methods  Result  Buttons  Label  Event Handler  OnServerClick TerraServer. Microsoft.net Overview  What is   it? Set of Web methods Programmable interface to online database  Aerial imagery and topographical maps  Assumptions for   this tutorial Visual Studio.NET Internet connection Tutorial  Create  Create a new project application UI  Add Web reference  Implement functionality Legal Notices Unpublished work.  2001 Microsoft Corporation. All rights reserved. Microsoft, Visual Basic, Visual Studio, and Windows are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. The names of actual companies and products mentioned herein may be the trademarks of their respective owners.
rate this doc
email this doc
embed this doc
add to folder
digg reddit stumble delicious
flag this doc
751
66
not rated
0
4/17/2008
English
search termpage on Googletimes searched
Preview

Dot Net Presentation 2

mayurck291 4/17/2008 | 230 | 59 | 0 | technology
Preview

Dot Net Presentation 6

mayurck291 4/17/2008 | 296 | 63 | 0 | technology
Preview

Dot Net Presentation 4

mayurck291 4/17/2008 | 510 | 58 | 0 | technology
Preview

Dot Net Presentation 1

mayurck291 4/17/2008 | 469 | 61 | 1 | technology
Preview

Dot Net Presentation 3

mayurck291 4/17/2008 | 259 | 55 | 0 | technology
Preview

Designated Copyright Agent - PALACE dot NET,

CopyrightAgent 3/30/2008 | 17 | 0 | 0 | legal
Preview

Microsoft_Net

sanyam 6/1/2008 | 95 | 5 | 0 | educational
Preview

net_notes

sanyam 6/1/2008 | 99 | 15 | 0 | educational
Preview

Designated Copyright Agent - alpha dot net, corp.

CopyrightAgent 3/30/2008 | 100 | 0 | 0 | legal
Preview

Designated Copyright Agent - Brazoria Dot Net, Inc.

CopyrightAgent 3/30/2008 | 89 | 0 | 0 | legal
Preview

Designated Copyright Agent - Voxel Dot Net, Inc.

CopyrightAgent 3/30/2008 | 17 | 0 | 0 | legal
Preview

Wharton Presentation - Monetizing the Net - Supernova 2008

MissPowerPoint 6/30/2008 | 59 | 3 | 0 | business
Preview

Wrox - Beginning Visual Basic .NET Database Programming

sanyam 6/1/2008 | 249 | 1354 | 0 | educational
Preview

Groups and electron dot diagrams

LisaB1982 5/30/2008 | 34 | 0 | 0 | educational
Preview

WORLD_TIME[1]

mayurck291 4/24/2008 | 118 | 35 | 0 | creative
Preview

TRAINS_INDIA

mayurck291 4/24/2008 | 413 | 24 | 0 | creative
Preview

TaxCalc_2006

mayurck291 4/24/2008 | 316 | 14 | 0 | creative
Preview

STD

mayurck291 4/24/2008 | 145 | 20 | 0 | creative
Preview

ringtones

mayurck291 4/24/2008 | 160 | 15 | 0 | creative
Preview

PICNIC_SPOTS

mayurck291 4/24/2008 | 1093 | 24 | 1 | creative
Preview

NAME___ITS_MEANING

mayurck291 4/24/2008 | 228 | 48 | 0 | creative
Preview

life_time_calender

mayurck291 4/24/2008 | 135 | 22 | 0 | creative
Preview

clock

mayurck291 4/24/2008 | 140 | 20 | 0 | creative
Preview

celldecoder

mayurck291 4/24/2008 | 135 | 19 | 0 | creative
dot13
dotnet ppt43
execution model in dot net application13
system12
dot net basics72
xml in dot net ppt12
example of retrieving web service from wsdl using32
dotnet framework fundamentals ppt22
dot net presentation12
dot net frame work ppt12
services12
wsdl proxy post compile windows forms12
asp62
basics of dotnet ppt22
dot net architecture52
send file socket dot net132
web application architecture dotnet22
generate wsdl from asmx in c%2311
"introduction to vb11
psp-image-u0nmbb31
 
review this doc