Arhitectura serviciilor web

Slides:



Advertisements
Similar presentations
REST Introduction 吴海生 博克软件(杭州)有限公司.
Advertisements

Web Service Ahmed Gamal Ahmed Nile University Bioinformatics Group
General introduction to Web services and an implementation example
1 Understanding Web Services Presented By: Woodas Lai.
Web Services Darshan R. Kapadia Gregor von Laszewski 1http://grid.rit.edu.
Lecture 4 Middleware: Client-Server Computing Wireless and Mobile Systems Design.
What is a web service?  A remote procedure call (RPC) over HTTP.  A web-accessible operation that takes input and returns results in XML.  Like a web.
CSE 636 Data Integration Web Services.
ΗΛΕΚΤΡΟΝΙΚΟ ΕΜΠΟΡΙΟ Web Services Overview Mary Grammatikou 9/06/2009.
Web Services CS Web Services Internet-available services using XML messaging, for computer-computer interaction Not tied to any OS or language Self-describing:
TP2653 Adv Web Programming SOAP and WSDL. SOAP Simple Object Access Protocol – Lightweight XML-based messaging protocol – A protocol for accessing a Web.
Grid Computing, B. Wilkinson, 20043b.1 Web Services Part II.
Lecture 6 & 7 SOAP WSDL UDDI. Chapter 22Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns Highlights eXtensible.
WSDL: Web Services Definition Language CS 795/895.
1 Core Web Services Standards. 2 (Simplified) Web Service Architecture Registry 1. Service Registers PUBLISH 3. Client calls Service BIND 2. Client Request.
REST vs SOAP for Web Services Applications and Services in Internet Benjamin Hilaire – 81747L
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.
CS 493/693: Distributed Systems Programming V. “Juggy” Jagannathan CSEE, West Virginia University February 07, 2005.
1 WSDL Tutorial Heather Kreger (borrowed from Peter Brittenham) Web Services Architect IBM Emerging Technologies.
Web Services Martin Smítka. Description The main idea behind Web Services is that back-end application comunicate with another back-end application without.
Introduction to Web Services Instructor: Dr. M. Anwar Hossain.
Copyright © 2013 Curt Hill SOAP Protocol for exchanging data and Enabling Web Services.
Web Services, SOAP, and WSDL CSCI Web Services for B2B communication.
Lattice QCD Data Grid Middleware: Meta Data Catalog (MDC) -- CCS ( tsukuba) proposal -- M. Sato, for ILDG Middleware WG ILDG Workshop, May 2004.
CP3024 Lecture 10 Web Services. What are Web Services?  “encapsulated, loosely coupled, contracted software objects offered via standard protocols” ZapThink.
Advanced Web Technologies Lecture #4 By: Faraz Ahmed.
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.
WSDL – Web Service Definition Language  WSDL is used to describe, locate and define Web services.  A web service is described by: message format simple.
Introduction to Web Services. Agenda Motivation History Web service model Web service components A walkthrough examples.
Web services In this presentation… –what is a web service? –web service benefits –web service standards –web service definitions –web service actions.
Web Services An Introduction Copyright © Curt Hill.
Government Data Integration หลักสูตรเบื้องต้นSOAP
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.
1/30/20161 Introduction to Web Services Bina Ramamurthy
1 WSDL Web Services Description Language. 2 Goals of WSDL Describes the formats and protocols of a Web Service in a standard way –The operations the service.
Java Web Services Orca Knowledge Center – Web Service key concepts.
Introduction to Web Services
Beginning XML 4th Edition.
An Introduction to Web Services
WEB SERVICES.
Unit – 5 JAVA Web Services
GF and RS, Dept. of CS, Mangalore University
Introduction to Web Services
Some Basics of Globus Web Services
Web Services CO5027.
Introduction to Persistent Identifiers
Februarie 2018 ASE Bucuresti
XML and SOAP Examples PTLIU Laboratory for Community Grids
Căutarea şi regăsirea informaţiei.
Introduction to Web Services and SOA
Căutarea şi regăsirea informaţiei.
Gestionarea datelor stiintifice
Retele de calculatoare
Crearea si gazduirea serviciilor
Chapter 9 Web Services: JAX-RPC, WSDL, XML Schema, and SOAP
Crearea si gazduirea serviciilor
INTERNET SERVICII INTERNET.
SOAP Simple Object Access Protocol
Windows Communication Foundation (WCF)
Web services, WSDL, SOAP and UDDI
A great way to create a channel of communication
Functia de documentare
SOAP -Simple Object Access Protocol-
Configurarea, deployment-ul automat si testarea serviciilor
Web Based Applications
Aplicatii Web bazate pe semantica, agenti si servicii
Introduction to Web Services and SOA
Universal Description, Discovery and Integration (UDDI)
Presentation transcript:

Arhitectura serviciilor web Olteanu Ana Cristina

La inceput… Interactiunea web traditionala

Arhitectura distribuita

Ce este un serviciu web ? Un serviciu web este o aplicatie modulara, auto-descriptiva care poate fi publicata si accesata prin Internet si care foloseste un sistem de mesaje standardizat XML

Avantaje Interoperabilitate Arhitectura distribuita – reutilizabile Distribuire usoara intre consumatori Modularitate

Tipuri de arhitecturi Arhitectura de tip RPC Arhitectura de tip REST Client Service (pe Server)

Arhitectura RPC

Arhitectura de tip RPC Remote Procedure Call

Mod de functionare 3 operatii Exemplu : conversie valutara Publicare Descoperire Conectare Exemplu : conversie valutara

Stiva unui serviciu web

HTTP HyperText Transport Protocol HTTP 1.1 Metode: GET,POST,PUT,DELETE,HEAD,TRACE Arhitecura RPC foloseste doar GET POST

SOAP Simple Object Access Protocol\ Diferentiaza major cele doua arhitecturi Complex : mesajul incapsulat intr-un invelis Bazat pe XML

Transmitere mesaje XML folosind SOAP

UDDI Universal Description, Discovery and Integration http://www.uddi.org Specificatie tehnica pentru a publica si a gasi servicii web in Internet White pages, yellow pages, green pages

Exemplu de registru UDDI

WSDL Web Services Definition Language http://www.w3.org/TR/wsdl/ Limbaj bazat pe XML pentru descrirea interfetei serviciilor web Ce face serviciul ( descriere) Cum se foloseste serviciul (metodele) Unde se gaseste serviciul Nu depinde de protocolul de pe nivelul inferior.

Descriere serviciu cu WSDL(1) <definitions name="WeatherService" targetNamespace="http://www.ecerami.com/wsdl/WeatherService.wsdl" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"> <message name="getWeatherRequest"> <part name="zipcode" type="xsd:string"/> </message> <message name="getWeatherResponse"> <part name="temperature" type="xsd:int"/>

Descriere serviciu cu WSDL (2) <binding name="Weather_Binding" type="tns:Weather_PortType"> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <operation name="getWeather"> <soap:operation soapAction=""/> <input> <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:examples:weatherservice" use="encoded"/> </input> <output> </output> </operation> </binding>

Interactiunea intre acestea

Arhitectura REST

Arhitectura REST REpresentational State Transfer Arhitectura simpla HTTP XML URI In REST totul este o resursa

Concepte REST (1) O pagina web: reprezentare a unei resurse -> de aici si numele URI ( Uniform Resource Identifier) : numele si adresa resursei Anumit format impus de cei ce implementeaza serviciul Exemplu : http://www.example.com/relationships/Alice;Bob http://www.example.com/nextprime/1024 ?1

Concepte REST (2)

Metode HTTP Get (GET),Create (PUT), Update( POST), delete (DELETE) GET /weatherforecast/02110 HTTP/1.1 POST /weatherforecast HTTP/1.1 PUT /weatherforecast/95101 HTTP/1.1 DELETE /weatherforecast/02110 HTTP/1.1 SOAP foloseste doar POST si GET

Exemplu REST

Interfata uniforma Concept de baza in REST URI ce respecta reguli : identifica o resursa Clientul documentat XML

Tehnici de implementare in .NET Windows Communication Foundation(WCF) Componentele majore: - Adresa - Binding - Contract

Concluzii Arhitectura distribuita,scalabilitate Cele doua arhitecturi: complex vs simplu Arhitectura de tip REST necesita mai mult efort in partea clientului

?