1.NET Web Forms Web Services © 2002 by Jerry Post.

Slides:



Advertisements
Similar presentations
Intesar G Ali IT DepartmentPalestinian Land Authority Web services Prepared by: Intesar Ali IT Department PLA August 2010.
Advertisements

Forms Authentication, Users, Roles, Membership Ventsislav Popov Crossroad Ltd.
Web Services Darshan R. Kapadia Gregor von Laszewski 1http://grid.rit.edu.
Building and Using Web Services with ASP.NET Rob Howard Program Manager.NET Framework Team Microsoft Corp.
XML Web Services in Visual Studio ®.NET NameTitleCompany.
A New Computing Paradigm. Overview of Web Services Over 66 percent of respondents to a 2001 InfoWorld magazine poll agreed that "Web services are likely.
Web Services Jeffrey Miller California State University Los Angeles Winter 2003.
Slide 1 EE557: Server-Side Development Lecturer: David Molloy Room: XG19 Mondays 10am-1pm Notes:
Introduction to ASP.NET, Second Edition2 Chapter Objectives.
XML Web Services ASP.NET. Overview of Web Services (Page 1) Web Service – Part or all of a Web application that is publicly exposed so that other applications.
9. Web Services. 2 Microsoft Objectives “Web Services are poised to change the future of software development...” WebServices.
Chapter 12 Extending Web Applications. ASP.NET 2.0, Third Edition2.
HTTP Overview Vijayan Sugumaran School of Business Administration Oakland University.
1 The World Wide Web. 2  Web Fundamentals  Pages are defined by the Hypertext Markup Language (HTML) and contain text, graphics, audio, video and software.
INTRODUCTION TO WEB SERVICES CS 795. What is a Web Service ? Web service is a means by which computers talk to each other over the web using HTTP and.
1 Web Services Visual C# 2008 Step by Step Chapter 30.
CS 415 N-Tier Application Development By Umair Ashraf July 6,2013 National University of Computer and Emerging Sciences Lecture # 9 Introduction to Web.
TP2653 Adv Web Programming SOAP and WSDL. SOAP Simple Object Access Protocol – Lightweight XML-based messaging protocol – A protocol for accessing a Web.
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
Web Servers Web server software is a product that works with the operating system The server computer can run more than one software product such as .
XML Web Services in Visual Studio.NET Peter Ty Developer Evangelist.NET and Developer Group.
Session 11: Security with ASP.NET
Server-side Scripting Powering the webs favourite services.
What are Webservices?. Web Services  What are Web Services?  Examine important Web Services acronyms (UDDI, SOAP, XML and WSDL)  What are the benefits.
1.NET Web Forms Security Issues © 2002 by Jerry Post.
Outline  Enterprise System Integration: Key for Business Success  Key Challenges to Enterprise System Integration  Service-Oriented Architecture (SOA)
Web Services (SOAP, WSDL, and UDDI)
Microsoft ® ASP.NET Presented by Joseph J. Sarna Jr. JJS Systems, LLC.
1 HKU CSIS DB Seminar: HKU CSIS DB Seminar: Web Services Oriented Data Processing and Integration Speaker: Eric Lo.
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
CSC8530 Distributed Systems XML Web Services David Vaglia.
Web Server Administration Web Services XML SOAP. Overview What are web services and what do they do? What is XML? What is SOAP? How are they all connected?
11 Web Services. 22 Objectives You will be able to Say what a web service is. Write and deploy a simple web service. Test a simple web service. Write.
.Net and Web Services Security CS795. Web Services A web application Does not have a user interface (as a traditional web application); instead, it exposes.
Current Trends in Network- Based Application Developments Bill Chu Department of Software and Information Systems UNC Charlotte.
XML Web Services Architecture Siddharth Ruchandani CS 6362 – SW Architecture & Design Summer /11/05.
Web Services. ASP.NET Web Services  Goals of ASP.NET Web services:  To enable cross-platform, cross- business computing  Great for “service” based.
1 Web Services Web and Database Management System.
XML and Web Services (II/2546)
ASP.NET Web Services.  A unit of managed code installed under IIS that can be remotely invoked using HTTP.
Week Six : Writing Web Services Aims: Creating and Consuming student’s first Web Services Learning Outcomes: Familiarity with VS.NET for creating and consuming.
Chapter 7: Creating and Consuming XML Web Services Understanding XML Web Services Creating XML Web Services Deploying and Discovering XML Web Services.
C# 1 Web services CSC 298. C# 2 Web services  A technology to make libraries available across the internet.  In Visual Studio,  can create a web service.
Understanding Web Applications Lesson 4. Objective Domain Matrix Skills/ConceptsMTA Exam Objectives Understanding Web Page Development Understand Web.
Web Services from 10,000 feet Part I Tom Perkins NTPCUG CertSIG XML Web Services.
Web Services An Introduction Copyright © Curt Hill.
.NET Mobile Application Development XML Web Services.
Introduction to Web Services Presented by Sarath Chandra Dorbala.
INFSO-RI Enabling Grids for E-sciencE Web Services Mike Mineter National e-Science Centre, Edinburgh.
Lecture VI: SOAP-based Web Service CS 4593 Cloud-Oriented Big Data and Software Engineering.
Copyright 2007, Information Builders. Slide 1 iWay Web Services and WebFOCUS Consumption Michael Florkowski Information Builders.
Introduction to Web Services Srinath Vasireddy Support Professional Developer Support Microsoft Corporation.
Web Server Administration Chapter 6 Configuring a Web Server.
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 9 Web Services: JAX-RPC,
Java Web Services Orca Knowledge Center – Web Service key concepts.
Jim Fawcett CSE681 – SW Modeling & Analysis Spring 2005
Session Variables and Post Back
Sabri Kızanlık Ural Emekçi
WEB SERVICES.
ASP.NET Web Forms and Web Services
INTRODUCTION TO WEB SERVICES CS 795. What is a Web Service ? Web service is a means by which computers talk to each other over the web using HTTP and.
Web Services Introduction
WEB API.
Web Server Administration
Chapter 9 Web Services: JAX-RPC, WSDL, XML Schema, and SOAP
Controllers.
Deepak Shenoy Agni Software
Presentation transcript:

1.NET Web Forms Web Services © 2002 by Jerry Post

2 Web Service Principles  Primary goal: small independent programs that can be called to perform a task or deliver data by other programs on diverse machines, all using Web transfers and standard protocols.  Accessible by URL  Data transfer by XML, preferably over HTTP  XML Schemas to define data structures  SOAP to handle activation  Registered on a public registry, with descriptive information to enable its use  Universal Description, Discovery, and Integration (UDDI)  Web Services Description Language (WSDL) Esposito, Ch. 9, p ; Short, 2002.

3 Web Services Perspective User: Browser Primary application Legacy data Service: data analysis HTML XML

4 Web Service Structure  Your Web service  Receives a request via HTTP  It might contain data within an XML transfer  Your code performs some action (e.g., look up data)  And returns an XML result  It will be name something.ASMX

5.NET Web Services  Create a new class that inherits from System.Web.Services.WebService  WebService Attribute  Not required, but used by WSDL to document your service.  Name = “”  Description=“”  Namespace=“”usually your url, but could be anything unique [WebService(Namespace=“something/whatever”, Name=“MyService”, Description=“Sample test service”)] Public Class MyService1 Inherits WebService … End Class

6 WebMethod  A Web Method is a function performed by your service. It must be declared as a WebMethod to be accessible. [WebMethod(MessageName=“GetProductList”, CacheDuration=60, Description=“Main item list.”)] Public Function GetProducts() As DataSet … End Function [WebMethod(MessageName=“GetOneProduct”, Description=“Detailed information about one item.”)] Public Function GetProducts(ByVal ItemID As Integer) As DataSet … End Function

7 WebMethod Properties  BufferResponse (true by default)  CacheDuration (seconds to hold in memory)  Description (mostly for WSDL)  EnableSession (false by default, avoid because it might require cookies)  MessageName (Lets you expose a different name to the public)  TransactionOption (activates transaction support)

8 Invoking a Web Service  Three methods  POST command that contains a SOAP request  POST command specifying method name and parameters  GET command with URL specifying method name and parameters POST URL, etc 15 POST URL/MyService.asmx/GetOneProduct ItemID=15 GET URL/MyService.asmx/GetOneProduct?ItemID=15

9 Handling the Response  Your calling application receives a response as an HTTP return packet. If you use SOAP, you get SOAP back, otherwise, straight XML. HTTP/ OK Content-Type: text/xml; charset=utf-8 Content-Length: (some number) (schema info) (XML version of the DataSet)

10 Proxy Class within.NET  Once the service is created (or known), you can create a proxy class and install it in your application. Your application will then build all of the code needed to cal the Web service and process the results. You treat it as if it were a simple class (but remember the round-trip delay to go get the data).  Find or build the original service.  On your application machine, create a proxy class--command line: wsdl.exe /out:MyService1Proxy.vb /namespace:ServiceNameSpace /language:VB url  Add the resulting class to your project, by adding a Reference within the page where you want to use it Dim ds As DataSet = New DataSet() Dim srv As Namespace.MyService1 = new Namespace.MyService1() Ds = srv.GetOneProduct(15)

11 Web Service Security: Authentication  Three built-in possibilities by inheriting from WebService, and can be set in web.config file:  Windows integrated (default)  Form-based  Microsoft passport (requires payment to Microsoft)  Usually easier (and cheaper) to create your own table of users and authenticate against it. As a service, users would have to call a logon method first, which would give them an encrypted token. Other method requests would require (and test) the token.

12 Summary  Web service technologies are relatively standardized and can be built using diverse technologies.  Authentication is still an issue because there are no accepted standards.  Finding useful commercial ideas appears to be difficult.  Charging for commercial services is going to be a nightmare for a while (except maybe as a monthly service).  But Web Services are great for internal use, because it separates applications, and makes it much easier to centralize some data.  Academic example: there should be only one student database. All other applications should be able to send a Student ID and get whatever student data they need and are authorized to see.