Web Services Copyright © 2000-2007 Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.

Slides:



Advertisements
Similar presentations
18 Copyright © 2005, Oracle. All rights reserved. Distributing Modular Applications: Introduction to Web Services.
Advertisements

REST Introduction 吴海生 博克软件(杭州)有限公司.
Introduction to Web Services
Web Service Architecture
BCS Teesside Web Services David Fuller. What I will cover What are Web Services? What is SOA? What is BPEL? Demonstrate the construction of a web service.
Siebel Web Services Siebel Web Services March, From
Overview of Web Services
31242/32549 Advanced Internet Programming Advanced Java Programming
Web Service Ahmed Gamal Ahmed Nile University Bioinformatics Group
General introduction to Web services and an implementation example
Web Services Web Services are the basic fundamental building blocks of invoking features that can be accessed by an application program. The accessibility.
1 Understanding Web Services Presented By: Woodas Lai.
Information Management NTU Web Services. Information Management NTU What Are Web Services? Semantically encapsulate discrete functionality Loosely coupled,
1 Web Services – Part I CS , Spring 2008/9.
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.
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.
Grid Computing, B. Wilkinson, 20043a.1 WEB SERVICES Introduction.
Web Services Seppo Heikkinen MITA seminar/TUT
2006 IEEE International Conference on Web Services ICWS 2006 Overview.
Web Services CS Web Services Internet-available services using XML messaging, for computer-computer interaction Not tied to any OS or language Self-describing:
RSS RSS is a method that uses XML to distribute web content on one web site, to many other web sites. RSS allows fast browsing for news and updates.
Web Service What exactly are Web Services? To put it quite simply, they are yet another distributed computing technology (like CORBA, RMI, EJB, etc.).
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.
Web services A Web service is an interface that describes a collection of operations that are network-accessible through standardized XML messaging. A.
1 Web Services Distributed Systems. 2 Service Oriented Architecture Service-Oriented Architecture (SOA) expresses a software architectural concept that.
1 Core Web Services Standards. 2 (Simplified) Web Service Architecture Registry 1. Service Registers PUBLISH 3. Client calls Service BIND 2. Client Request.
UDDI ebXML(?) and such Essential Web Services Directory and Discovery.
Web Services & WCF ~ Ankit. Web services A web service is a collection of protocols and standards used for exchanging data between applications or systems.
1 HKU CSIS DB Seminar: HKU CSIS DB Seminar: Web Services Oriented Data Processing and Integration Speaker: Eric Lo.
CSC8530 Distributed Systems XML Web Services David Vaglia.
Web Services (SOAP, WSDL, UDDI) SNU OOPSLA Lab. October 2005.
Java SE 6 Retooled for Web Services Mihail Stoynov mihail.stoynov.com mihail.stoynov.com.
Web Services based e-Commerce System Sandy Liu Jodrey School of Computer Science Acadia University July, 2002.
Web Services Based on SOA: Concepts, Technology, Design by Thomas Erl MIS 181.9: Service Oriented Architecture 2 nd Semester,
Web Services. ASP.NET Web Services  Goals of ASP.NET Web services:  To enable cross-platform, cross- business computing  Great for “service” based.
Introduction to Web Services Instructor: Dr. M. Anwar Hossain.
Web Services Presented By : Noam Ben Haim. Agenda Introduction What is a web service Basic Architecture Extended Architecture WS Stacks.
WebService. Outline Overview of Web Services SOAP (messaging) WSDL (service description) UDDI (registry)
Copyright © 2013 Curt Hill SOAP Protocol for exchanging data and Enabling Web Services.
Enterprise Computing: Web Services
Web Services (SOAP) part 1 Eriq Muhammad Adams J |
XML and Web Services (II/2546)
What is a Web Service? Distributed Computing Model Distributed Computing Model  Loosely Coupled, Course Grained  Standard HTTP Transport  Sync/Async.
Kemal Baykal Rasim Ismayilov
Introduction to Web Services. Agenda Motivation History Web service model Web service components A walkthrough examples.
1 G52IWS: Web Services Chris Greenhalgh. 2 Contents The World Wide Web Web Services example scenario Motivations Basic Operational Model Supporting standards.
Web Services An Introduction Copyright © Curt Hill.
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.
Introduction to Web Services Presented by Sarath Chandra Dorbala.
Advanced Java Session 10 New York University School of Continuing and Professional Studies.
EGEE is a project funded by the European Union under contract IST Introduction to Web Services 3 – 4 June
Web Services Blake Schernekau March 27 th, Learning Objectives Understand Web Services Understand Web Services Figure out SOAP and what it is used.
Java Web Services Orca Knowledge Center – Web Service key concepts.
Introduction to Web Services
TOPIC: Applications of Web Technologies in Distributed Systems
Sabri Kızanlık Ural Emekçi
WEB SERVICES.
Unit – 5 JAVA Web Services
GF and RS, Dept. of CS, Mangalore University
Introduction to Web Services and SOA
Introduction to Web Services
Distributed System using Web Services
Introduction to Web Services and SOA
Distributed System using Web Services
Presentation transcript:

Web Services Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission from Liferay, Inc.

Objectives Web Services 1.What is WS? 2.How does it work? 3.WS in Action 4.An Example in Liferay

What is WS? WS = Web Services A software system designed to support interoperable Machine to Machine interaction over a network (W3C). Web services are frequently just Web APIs that can be accessed over a network, such as the Internet, and executed on a remote system hosting the requested services.

What is WS? Web services platform elements SOAP (Simple Object Access Protocol) – XML plus HTTP UDDI (Universal Description, Discovery and Integration) - a directory service where businesses can register and search for Web services. WSDL (Web Services Description Language) - an XML-based language for describing Web services and how to access them.

What is WS? Additional specifications, WS-* WS-Security - Defines how to use XML Encryption and XML Signature in SOAP to secure message exchanges. WS-Reliability - An OASIS standard protocol for reliable messaging between two Web services. WS-Reliable Messaging - A protocol for reliable messaging between two Web services. WS-Addressing - A way of describing the address of the recipient (and sender) of a message. WS-Transaction - A way of handling transactions.

How WS Works Service Registry Service Requestor Service Provider Bind Find Publish

How WS Works Styles of use Remote procedure calls (RPC) - RPC Web services present a distributed function (or method) call interface that is familiar to many developers. Typically, the basic unit of RPC Web services is the WSDL operation. Service-oriented architecture (SOA) - The basic unit of communication is a message, rather than an operation - "message-oriented" services. Representational state transfer (REST)- RESTful Web services attempt to emulate HTTP and similar protocols by constraining the interface to a set of well- known, standard operations (e.g., GET, PUT, DELETE).

Web Services in Action HTTP, HTTPS, SMTP XML, SOAP, Addressing XSD,WSDL,UDDI,Policy,Metadata Exchange BPEL4WS / WS-BPEL Transports Messaging Transports Composable service assurances Transactions Reliable messaging Security

WSDL & SOAP & UDDI What is it? –WSDL 1.1 Good specification –WSDL 2.0 Much better specifications –JSR 110: Java APIs for WSDL –SOAP 1.1 / 1.2 –UDDI 1.0 / 2.0 / 3.0

An Example in Liferay Alfresco Content UI: Add content: Alfresco Content Link: com.liferay.portlet.alfrescocontent.util.AlfrescoContentUtil org.alfresco.webservice.* at alfresco_client.jar URL: PropsUtil.ALFRESCO_CONTENT_SERVER_URL; Page: portal/portal-web/html/portlet/alfresco_content/init.jsp Portlet Type: Struts portlet at portal/portal-ejb/src com.liferay.portlet.alfrescocontent.action com.liferay.portlet.alfrescocontent.util

An Example in Liferay Code Review – at source-ws/AlfrescoContentUtil.java AuthenticationUtils.startSession(userId, password); RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService(); Reference reference = null; if (Validator.isNull(uuid)) { reference = new Reference(_SPACES_STORE, null, null); } else { reference = new Reference(_SPACES_STORE, uuid, null); } QueryResult result = repositoryService.queryChildren(reference); ResultSetRow[] rows = result.getResultSet().getRows();

Review of WS WS - Secure, Reliable, Transacted. –Transports - HTTP, HTTP/S, SMTP –Message Formats – XSD –WS-Addressing WS - a Service-Oriented Architecture. –Services are described by schema and contract not type –Service compatibility is more than type compatibility –Service-orientation assumes that bad things can and will happen –Service-orientation enables flexible binding of services WS-BPEL, BPEL4WS: see next topic

Revision History Jonas Yuan05/30/07Created for Liferay 4.2.2