Introduction to Server-Side Web Development Introduction to Server-Side Web Development using JSP and Web Services Session IV: JSP and Web Services 11.

Slides:



Advertisements
Similar presentations
Web Service Architecture
Advertisements

Web Service Ahmed Gamal Ahmed Nile University Bioinformatics Group
Information Management NTU Web Services. Information Management NTU What Are Web Services? Semantically encapsulate discrete functionality Loosely coupled,
Web Services Darshan R. Kapadia Gregor von Laszewski 1http://grid.rit.edu.
Web Services Nasrullah. Motivation about web service There are number of programms over the internet that need to communicate with other programms over.
CIS-764 Database Design Service-Oriented Architecture and Web-Services Binti Sepaha.
1 Introduction to XML. XML eXtensible implies that users define tag content Markup implies it is a coded document Language implies it is a metalanguage.
Presentation 7 part 2: SOAP & WSDL. Ingeniørhøjskolen i Århus Slide 2 Outline Building blocks in Web Services SOA SOAP WSDL (UDDI)
Latest techniques and Applications in Interprocess Communication and Coordination Xiaoou Zhang.
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.
Grid Computing, B. Wilkinson, 20043a.1 WEB SERVICES Introduction.
Web Services By Ethan Justin Yuli. Web Services in Action Information through Integration (Google Example)Google Example What do Web.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Web Services.
2006 IEEE International Conference on Web Services ICWS 2006 Overview.
Workshop on Cyber Infrastructure in Combustion Science April 19-20, 2006 Subrata Bhattacharjee and Christopher Paolini Mechanical.
ΗΛΕΚΤΡΟΝΙΚΟ ΕΜΠΟΡΙΟ Web Services Overview Mary Grammatikou 9/06/2009.
And so on CGI programming Web Services Java Programs for the Web.
Web Services CS Web Services Internet-available services using XML messaging, for computer-computer interaction Not tied to any OS or language Self-describing:
Web Service What exactly are Web Services? To put it quite simply, they are yet another distributed computing technology (like CORBA, RMI, EJB, etc.).
1 Java Server Programming zLecture 1 focuses on: yIntroduction to web services y Web Services using Axis y The bigger Picture: Introduction to J2EE y Java.
Web services A Web service is an interface that describes a collection of operations that are network-accessible through standardized XML messaging. A.
Web service testing Group D5. What are Web Services? XML is the basis for Web services Web services are application components Web services communicate.
Processing of structured documents Spring 2003, Part 6 Helena Ahonen-Myka.
Web Services Mohamed Fahmy Dr. Sherif Aly Hussein.
T Network Application Frameworks and XML Web Services and WSDL Sasu Tarkoma Based on slides by Pekka Nikander.
What are Webservices?. Web Services  What are Web Services?  Examine important Web Services acronyms (UDDI, SOAP, XML and WSDL)  What are the benefits.
1 Core Web Services Standards. 2 (Simplified) Web Service Architecture Registry 1. Service Registers PUBLISH 3. Client calls Service BIND 2. Client Request.
Chapter 6 Introduction to Web Services. Objectives By study of the chapter, you will be able to: Describe what is Web services Describe what are differences.
WEB SERVICES Mahmoud Rabie – EGJUG W EB SERVICES The world before Situation Problems Solutions Motiv. for Web Services Probs. with Curr. sols. Web.
1 HKU CSIS DB Seminar: HKU CSIS DB Seminar: Web Services Oriented Data Processing and Integration Speaker: Eric Lo.
Web Services Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
Web Services Based on SOA: Concepts, Technology, Design by Thomas Erl MIS 181.9: Service Oriented Architecture 2 nd Semester,
Web Services. Abstract  Web Services is a technology applicable for computationally distributed problems, including access to large databases What other.
Introduction to Server-Side Web Development Introduction to Server-Side Web Development using JSP and Web Services JSP and Web Services 18 th March 2005.
Chapter 10 Intro to SOAP and WSDL. Objectives By study in the chapter, you will be able to: Describe what is SOAP Exam the rules for creating a SOAP document.
Web Services Presented By : Noam Ben Haim. Agenda Introduction What is a web service Basic Architecture Extended Architecture WS Stacks.
Copyright © 2013 Curt Hill SOAP Protocol for exchanging data and Enabling Web Services.
1 Web Services Web and Database Management System.
Web Services (SOAP) part 1 Eriq Muhammad Adams J |
XML and Web Services (II/2546)
1 Engineering Web Based Legacy Systems By Kanchana Eramudugoda Distributed Computing – CS843.
What is a Web Service? Distributed Computing Model Distributed Computing Model  Loosely Coupled, Course Grained  Standard HTTP Transport  Sync/Async.
Kemal Baykal Rasim Ismayilov
SOAP-based Web Services Telerik Software Academy Software Quality Assurance.
CSIT 220 (Blum)1 Remote Procedure Calls Based on Chapter 38 in Computer Networks and Internets, Comer.
An Introduction to Web Services Web Services using Java / Session 1 / 2 of 21 Objectives Discuss distributed computing Explain web services and their.
1 G52IWS: Web Services Chris Greenhalgh. 2 Contents The World Wide Web Web Services example scenario Motivations Basic Operational Model Supporting standards.
Web Technologies Lecture 10 Web services. From W3C – A software system designed to support interoperable machine-to-machine interaction over a network.
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.
.NET Mobile Application Development XML Web Services.
Introduction to Web Services Presented by Sarath Chandra Dorbala.
EGEE is a project funded by the European Union under contract IST Introduction to Web Services 3 – 4 June
Software Architecture Patterns (3) Service Oriented & Web Oriented Architecture source: microsoft.
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 9 Web Services: JAX-RPC,
Service Oriented Architecture (SOA) Prof. Wenwen Li School of Geographical Sciences and Urban Planning 5644 Coor Hall
Java Web Services Orca Knowledge Center – Web Service key concepts.
TOPIC: Applications of Web Technologies in Distributed Systems
Sabri Kızanlık Ural Emekçi
WEB SERVICES.
Unit – 5 JAVA Web Services
Wsdl.
Chapter 9 Web Services: JAX-RPC, WSDL, XML Schema, and SOAP
Introduction to Web Services
WebServices Using JAX-RPC
Introduction to Web Services
Introduction to Web Services and SOA
Presentation transcript:

Introduction to Server-Side Web Development Introduction to Server-Side Web Development using JSP and Web Services Session IV: JSP and Web Services 11 th March 2004 Bogdan L. Vrusias

Introduction to Server-Side Web Development 11 th March 2004Bogdan L. Vrusias © Introduction The first revolution with the Internet was all about delivering information to people. We are now in the second revolution, which focuses on delivering information to systems. XML is the tool that makes this new revolution a reality, and Web services are the methods with which businesses will drive system-to- system communication.

Introduction to Server-Side Web Development 11 th March 2004Bogdan L. Vrusias © Session IV Before we go into Web services, we look into the Implicit Objects and the JSP Environment. What is a Web service. Tools and APIs for developing a Web service. Basic Web Service Process Advantages and disadvantages of Web services.

Introduction to Server-Side Web Development 11 th March 2004Bogdan L. Vrusias © Implicit Objects and the JSP Environment The scriptlets and expressions written in a JSP page do not stand alone as a complete program – trey need an environment in which to operate. The JSP container provides this environment and makes it accessible to the page author through what are called implicit objects: –request ( HttpServletRequest ) –response ( HttpServletResponce ) –pageContext –session ( HttpSession ) –application ( ServletContext ) –out ( JspWriter ) –config –page –exception

Introduction to Server-Side Web Development 11 th March 2004Bogdan L. Vrusias © Basic request Methods String getHeader(String name) Enumeration getHeaderNames() String getParameter(String name) Enumeration getParameterNames() HttpSession getSession(boolean create) String getMethod()

Introduction to Server-Side Web Development 11 th March 2004Bogdan L. Vrusias © Basic response Methods String getHeader(String name) Enumeration getHeaderNames() String getParameter(String name) Enumeration getParameterNames() HttpSession getSession(boolean create)

Introduction to Server-Side Web Development 11 th March 2004Bogdan L. Vrusias © Basic session Methods Object getAttribute(String name) Enumeration getAttributeNames() String getId() int getMaxInactiveInterval() void invalidate() void setAttribute(String name, Object value)

Introduction to Server-Side Web Development 11 th March 2004Bogdan L. Vrusias © Basic application Methods Object getAttribute(String name) void setAttribute(String name, Object value) void removeAttribute(String name) Enumeration getAttributeNames() String getRealPath(String path) URL getResource(String path) void log(String msg)

Introduction to Server-Side Web Development 11 th March 2004Bogdan L. Vrusias © Basic pageContext Methods Object findAttribute(String name) Object getAttribute(String name) void setAttribute(String name, Object value, int scope) void removeAttribute(String name, int scope) Application Session Request Page

Introduction to Server-Side Web Development 11 th March 2004Bogdan L. Vrusias © Basic out Methods void print(String value) void println(String value)

Introduction to Server-Side Web Development 11 th March 2004Bogdan L. Vrusias © What is a Web Service? Simply: A web service is a product in the form of a reusable function build by one company that is exposed on the Internet for another company to use. Web service is a remote Internet service that’s capable of sending and receiving data over an HTTP network within a well defined XML package. Using a Web service can be as simple as logging into a Web site or as complex as facilitating a multi-organisational business negotiation. For example, some search engine web sites provide this service. The search request can happen at a site, but the actual search occurs at another site hosting the search service. The practical reason to build a web service is to permit businesses to provide small, reusable, and self-describing computing methods to each other.

Introduction to Server-Side Web Development 11 th March 2004Bogdan L. Vrusias © Characteristics of a Web Service The data representation model is XML based. They are accessible using standard Internet protocols such as HTTP or SMTP. The user of a Web service is not tied to that Web service directly (loosely coupled). Ability to be synchronous or asynchronous. The clients can call methods, procedures, and functions on remote objects, through the Remote Procedure Calls (RPCs). They are distributed. They can centralise to a single source. A single Web service is NOT a full application. A Web service can be self-describing. Web services support the transparent exchange of documents to facilitate business integration.

Introduction to Server-Side Web Development 11 th March 2004Bogdan L. Vrusias © The basic building blocks XML –Without XML, Web services would not have been possible! SOAP (Simple Object Access Protocol) –SOAP is a protocol used for transferring queries and responses used by a Web service. –SOAP has three parts: A self-described envelop in which a message is contained. A set of encoding rules to define special Web service-defined data types. Rules for describing the exposed methods of a Web service. –Security issues (SSL, encryption) WSDL (Web Service Description Language) –WSDL is an XML-formatted language for describing Web services. –WSDL has the ability to describe a Web service in a standard way.

Introduction to Server-Side Web Development 11 th March 2004Bogdan L. Vrusias © Service Management Initiatives UDDI (Universal Description, Discovery and Integration) –UDDI is a distributed directory that allows businesses to list themselves on the Internet. –Businesses can access UDDI either through a Web interface or through automated programming methods. ebXML (e-business XML) –ebXML is a specification for standardising XML globally to aid in trade between organisations of any size. –It provides a standard method to exchange business messages written in XML. UDDI Vs ebXML –ebXML is design to be a complete business-to-business solution while UDDI focuses on serving as a simple index and a place for companies to integrate Web services relative to each other.

Introduction to Server-Side Web Development 11 th March 2004Bogdan L. Vrusias © Basic Web Service Process Register – The service provider registers its services with a UDDI registry. Enquire – The client looks up the service from the UDDI registry. Describe – The client obtains a description of the various methods and parameter types from the service provider in the form of WSDL. Communicate – The client invokes the Web service using SOAP, and the service sends a SOAP response back to the client. CLIENT UDDI Repository WEB SERVICE Register Enquire Describe Communicate

Introduction to Server-Side Web Development 11 th March 2004Bogdan L. Vrusias © Java APIs SAAJ (SOAP with Attachments API for Java) JAX-RPC (Java API for XML-based RPC) AXIS (Apache eXtensive Interaction System) (…used to be Apache SOAP) JAXM (Java API for XML Messaging) JAXR (Java API for XML Registries) JWSDL (Java API for WSDL) …

Introduction to Server-Side Web Development 11 th March 2004Bogdan L. Vrusias © Advantages Logic can be broken down into smaller reusable pieces of code. The code can be used by many different applications. The code can be registered so that many different organisations can use a single Web service. Web services can describe themselves to the world through special registries. Standalone protocols, APIs, and tools are evolving to allow programmers to build and access Web services.

Introduction to Server-Side Web Development 11 th March 2004Bogdan L. Vrusias © Disadvantages You need to create another software tier to utilise Web services. Accessing Web services over the Internet causes both security and speed concerns for an application designer.Automated tool that support Web services are currently young and few. Web services are new within the programming community. Unlike XML, which has the W3C to control and define XML, currently no single organisation exists to define the nature of a Web service.

Introduction to Server-Side Web Development 11 th March 2004Bogdan L. Vrusias © A Warning Due to the current constantly changing nature of Web services, we should not rush into them. Instead, we should carefully and slowly enter into Web services marketplace. Start with small interactions to gain experience. Probably using it internally at first is a wise decision to take. Then… ones you have reached and understand Web services and the major development tool have matured… go for it.

Introduction to Server-Side Web Development 11 th March 2004Bogdan L. Vrusias © Session IV: Closing Questions??? Remarks??? Comments!!! Evaluation!