Chapter 12 Extending Web Applications. ASP.NET 2.0, Third Edition2.

Slides:



Advertisements
Similar presentations
웹 서비스 개요.
Advertisements

Overview Environment for Internet database connectivity
Intesar G Ali IT DepartmentPalestinian Land Authority Web services Prepared by: Intesar Ali IT Department PLA August 2010.
Web Service Ahmed Gamal Ahmed Nile University Bioinformatics Group
SOAP.
Web Services Nasrullah. Motivation about web service There are number of programms over the internet that need to communicate with other programms over.
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.
Windows Communication Foundation and Web Services.
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.
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Chapter 42 Web Services.
Introduction to ASP.NET, Second Edition2 Chapter Objectives.
CSE 636 Data Integration Web Services.
2006 IEEE International Conference on Web Services ICWS 2006 Overview.
Exchange server Mail system Four components Mail user agent (MUA) to read and compose mail Mail transport agent (MTA) route messages Delivery agent.
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.
V1.00 © 2009 Research In Motion Limited Introduction to Mobile Device Web Development Trainer name Date.
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 Michael Smith Alex Feldman. What is a Web Service? A Web service is a message-oriented software system designed to support inter-operable.
Application Layer. Applications A program or group of programs designed for end users. A program or group of programs designed for end users. Software.
Intro to dot Net Dr. John Abraham UTPA – Fall 09 CSCI 3327.
INTRODUCTION TO WEB DATABASE PROGRAMMING
XML Web Services in Visual Studio.NET Peter Ty Developer Evangelist.NET and Developer Group.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
A Scalable Application Architecture for composing News Portals on the Internet Serpil TOK, Zeki BAYRAM. Eastern MediterraneanUniversity Famagusta Famagusta.
ASP.NET + Ajax Jesper Tørresø ITNET2 F08. Ajax Ajax (Asynchronous JavaScript and XML) A group of interrelated web development techniques used for creating.
MCSE Guide to Microsoft Exchange Server 2003 Administration Chapter Four Configuring Outlook and Outlook Web Access.
1 Web Services Distributed Systems. 2 Service Oriented Architecture Service-Oriented Architecture (SOA) expresses a software architectural concept that.
C Copyright © 2009, Oracle. All rights reserved. Appendix C: Service-Oriented Architectures.
1 Introduction CSIE, Da-Yeh University. 2 History of Software Development Traditional Programming Paradigm  Behind schedule, costly, and unreliable.
CIS 375—Web App Dev II Microsoft’s.NET. 2 Introduction to.NET Steve Ballmer (January 2000): Steve Ballmer "Delivering an Internet-based platform of Next.
ASP.NET 2.0 Chapter 5 Advanced Web Controls. ASP.NET 2.0, Third Edition2 Objectives.
Web Services & WCF ~ Ankit. Web services A web service is a collection of protocols and standards used for exchanging data between applications or systems.
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
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?
Lecture 15 Introduction to Web Services Web Service Applications.
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.
Dynamic Content On Edge Cache Server (using Microsoft.NET) Name: Aparna Yeddula CS – 522 Semester Project Project URL: cs.uccs.edu/~ayeddula/project.html.
.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.
1.NET Web Forms Web Services © 2002 by Jerry Post.
1 Senn, Information Technology, 3 rd Edition © 2004 Pearson Prentice Hall James A. Senn’s Information Technology, 3 rd Edition Chapter 12 Creating Web-Enabled.
XML Web Services Architecture Siddharth Ruchandani CS 6362 – SW Architecture & Design Summer /11/05.
Grid Chemistry System Architecture Overview Akylbek Zhumabayev.
Web Services. ASP.NET Web Services  Goals of ASP.NET Web services:  To enable cross-platform, cross- business computing  Great for “service” based.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
XML Web Service. Overview of XML Web Service ASP.NET XML Web services enable you to remotely access the properties and methods of classes across a network.
Kemal Baykal Rasim Ismayilov
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.
Module: Software Engineering of Web Applications Chapter 2: Technologies 1.
Understanding Web Applications Lesson 4. Objective Domain Matrix Skills/ConceptsMTA Exam Objectives Understanding Web Page Development Understand Web.
Web Services Using Visual.NET By Kevin Tse. Agenda What are Web Services and Why are they Useful ? SOAP vs CORBA Goals of the Web Service Project Proposed.
Intro to Web Services Dr. John P. Abraham UTPA. What are Web Services? Applications execute across multiple computers on a network.  The machine on which.
Chapter 1 Introduction to HTML, XHTML, and CSS HTML5 & CSS 7 th Edition.
.NET Mobile Application Development XML Web Services.
Introduction to.NET Building.NET Applications Mike Taulty Developer & Platform Group Microsoft Ltd
Introduction to Web Services Srinath Vasireddy Support Professional Developer Support Microsoft Corporation.
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
.NET Omid Darroudi.
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.
Implementing a service-oriented architecture using SOAP
Chapter 9 Web Services: JAX-RPC, WSDL, XML Schema, and SOAP
Serpil TOK, Zeki BAYRAM. Eastern MediterraneanUniversity Famagusta
Presentation transcript:

Chapter 12 Extending Web Applications

ASP.NET 2.0, Third Edition2

 Web applications consist of a client, which is the browser application, and a web server  Previous versions of ASP.NET would include a Remote Procedure Call (RCP) to call another application on the web server  The.NET Framework introduces Web services as an integral part of the architecture, making it easy to create and consume these services with minimal amounts of code written ASP.NET 2.0, Third Edition3

 Goal: use objects residing on other platforms  Mechanism  Stub  Transport  Implementation  Identifying an object  Unique ID with Host server  Directory services ASP.NET 2.0, Third Edition4

 The Web service client application does not communicate directly with the Web service application; rather, it creates a WSDL proxy  WSDL stands for Web Service Description Language (WSDL)  The WSDL proxy is a class that is used to invoke the Web service  The WSDL proxy will communicate with the Web service application through a WSDL stub ASP.NET 2.0, Third Edition5

 The WSDL stub is the code that communicates between the proxy class and the Web service application  The purpose of the WSDL stub is to make the communication with the Web service application simpler and transparent  The developer does not have to know about the inner workings of the Web service application in order to invoke the Web service  Rather, the WSDL stub knows what can be sent into and out of the Web service application ASP.NET 2.0, Third Edition6

7

 A controversial technique that has been used to retrieve product information across web sites is scraping  Scraping is labor intensive and the programmer needs permission in order to prevent violating copyright laws  Stream data is a Web service that provides data, and the client application connects to the Web service to retrieve it  Web services can also be used to deliver educational materials to schools, to build public service web sites, to retrieve statistical data, etc. ASP.NET 2.0, Third Edition8

9

 Setting up a web service  p. 586 ASP.NET 2.0, Third Edition10

ASP.NET 2.0, Third Edition11

ASP.NET 2.0, Third Edition12

ASP.NET 2.0, Third Edition13

 The directory mechanism is the means to locate a Web service through a Web service Discovery Directory  Microsoft and IBM have teamed up to create the Universal Description, Discovery, and Integration (UDDI) specification, which can be used to create a third-party Web service Discovery Directory  Use UDDI directories to locate Web services and the WSDL document  The UDDI service is now available in the Windows Server 2003 software ASP.NET 2.0, Third Edition14

ASP.NET 2.0, Third Edition15

 If the data will not change frequently, use caching techniques to increase performance; turn on page caching by setting the page caching properties  Caching is not enabled by default for data source controls, but you can enable it by setting the control’s EnableCaching property to true and setting the number of seconds to wait before refreshing the page using the CacheDuration property  If your URL that requested the page contains a query string, you can explicitly enable the page to cache each parameter by using OutputCache page directive and adding the VaryByParam attribute ASP.NET 2.0, Third Edition16

 Using a web service  P. 590 ASP.NET 2.0, Third Edition17

ASP.NET 2.0, Third Edition18

ASP.NET 2.0, Third Edition19

ASP.NET 2.0, Third Edition20

 HTTP protocol was selected as the primary delivery protocol of Web services because it can be used to deliver documents through proxy servers and fire walls  Three methods used to route the message over the HTTP are:  HTTPGet  HTTPPost  SOAP ASP.NET 2.0, Third Edition21

 When either Visual Studio.NET or Visual Web Developer Express are used to create a Web service, the application generates the WSDL document, the DISCO document, and the test web page  Use the breakpoints within the debugger tool and the tracing features to debug the Web service  To access an object, property, or function within the Web service, the local Web application treats the Web service as a local object ASP.NET 2.0, Third Edition22

 Simple Object Access Protocol (SOAP) is an XML-based protocol used for messaging delivery  The SOAP contract uses the XML language to describe the location and interfaces that a particular service supports  To use the WSDL command-line utility to look at the contract and generate the proxy class:  wsdl /language:VB  The DISCO document is an XML document that examines the SOAP contract to describe the method and data formats within the Web service  The DISCO document describes how the proxy class should make calls to the Web service ASP.NET 2.0, Third Edition23

 Import the WebService namespace at the top of the file  Insert the WebServiceAttribute, which means that the WebService keyword is inserted before the class declaration  Namespace property identifies a unique URL that can distinguish your Web service from other Web services on the Internet  Description property can be used to provide information about your Web service; the Description attribute will appear on the Web service home page ASP.NET 2.0, Third Edition24

ASP.NET 2.0, Third Edition25

ASP.NET 2.0, Third Edition26

ASP.NET 2.0, Third Edition27

ASP.NET 2.0, Third Edition28

ASP.NET 2.0, Third Edition29

ASP.NET 2.0, Third Edition30

ASP.NET 2.0, Third Edition31

ASP.NET 2.0, Third Edition32

 Although the HTTPGet and HTTPPost methods are limited to sending only primitive data types such as integers and strings, they can also send arrays of these primitive data types  The SOAP protocol allows you to send any structure, class, or enumerator over the Internet  Serialization is the process of changing an object into a form that can be readily transported over the network  Deserialization is the process of changing the string back into the original structure ASP.NET 2.0, Third Edition33

ASP.NET 2.0, Third Edition34

ASP.NET 2.0, Third Edition35

ASP.NET 2.0, Third Edition36

ASP.NET 2.0, Third Edition37

 You can secure a Web service by using traditional methods such as IIS Web security, Windows authentication and Windows NTFS file permissions, and Passport authentication  The Web services Enhancements (WSE) simplifies the development and deployment of secure Web services and allows developers and administrators to apply security policies more easily  You can require a specific authentication method such as anonymous access, or a specific Windows user account  You can require the client to use a secure communications channel such as SSL ASP.NET 2.0, Third Edition38

 Because there is a wide range of hardware and software for alternative platforms, not all of them have the same screen size, resolution, color, graphics, and multimedia capabilities  Many of the new devices have the.NET Compact Framework installed  You can use.NET development editors to create.NET applications for the Pocket PC devices  Some developers may choose to use eMbedded Visual Tools to create their mobile applications ASP.NET 2.0, Third Edition39

 The standard used to program on a mobile device is the Wireless Application Protocol (WAP)  Within the WAP is the Wireless S Protocol (WSP), which is a transport protocol that performs the same functions as HTTP for mobile devices  To work with web content, the WAP standards use an application standard known as Wireless Markup Language (WML)  Most mobile devices supply a simulator for developers  Each device has its own skin, which can be viewed on the device emulator ASP.NET 2.0, Third Edition40

ASP.NET 2.0, Third Edition41

ASP.NET 2.0, Third Edition42

ASP.NET 2.0, Third Edition43

ASP.NET 2.0, Third Edition44

ASP.NET 2.0, Third Edition45

 Web services are used to expose part or all of an application. A Web service must end in the.asmx extension. The keyword, WebMethod, is used to identify the methods that are to be exposed.  Web Service Description Language (WSDL) schema is used to create a WSDL document that describes the functionality of the Web service.  Microsoft and IBM have teamed up to create the Universal Description, Discovery, and Integration (UDDI) specification, which is used to locate Web services.  Call Web services by HTTPGet and HTTPPost methods, or SOAP.  WSDL document creates a proxy class. The web application calls the proxy class to invoke the Web service. The proxy class reads the WSDL document and verifies the delivery method.  SOAP contract is an XML-formatted document called the WSDL.  Secure a Web service by using the traditional methods such as IIS Web security, HTTPS with SSL, Windows authentication, and Passport authentication. ASP.NET 2.0, Third Edition46

 The Wireless Application Protocol (WAP) is an open standard used to create programs on a mobile device. Wireless Markup Language (WML) is the programming language used to create the code for the mobile applications.  WML is compliant with the XML protocols. The WML files use cards to organize and divide the structure of the WML document. You can use additional HTML tags within the WML language, such as the anchor tag.  Device emulators, such as the OpenWave Simulator, allow you to simulate phones from a variety of vendors.  A web page that contains Mobile controls is called a Mobile Form. Mobile controls inherit a code behind the page named System.Web.UI.MobileControls.MobilePage. ASP.NET 2.0, Third Edition47