introduction aux services web master miage sid université nancy2

24
Introduction aux services WEB Master Miage SID Université NANCY2

Upload: pascaline-paris

Post on 03-Apr-2015

111 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Introduction aux services WEB Master Miage SID Université NANCY2

Introduction aux services WEB

Master Miage SID Université NANCY2

Page 2: Introduction aux services WEB Master Miage SID Université NANCY2

Problématique

Hôte n°2Methode1()Methode2()

objet

Hôte n°1Methode1()Methode2()

objet

SERVEURCLIENT

Page 3: Introduction aux services WEB Master Miage SID Université NANCY2

Historique• CORBA

– Common Object Request Broker Architecture– OMG– IDL / Protocoles d'échanges– "Usine à gaz", top-down…

• RMI– Remote Method Invocation– Simple– Java

• DCOM– Distributed Component Object Model– Microsoft– Port/Firewall

Page 4: Introduction aux services WEB Master Miage SID Université NANCY2

Mécanisme

Serveur(Web service)Client

invocation

méthodeobjet

sérialisation

+

Page 5: Introduction aux services WEB Master Miage SID Université NANCY2

Mécanisme

Serveur(Web service)Client réponse

Exécutionde la méthode

(RPC)

objet

sérialisation

Page 6: Introduction aux services WEB Master Miage SID Université NANCY2

Concrètement

Serveur(Web service)Client

SOAP/XML

SOAP/XML

Contenu des messages

ASCII

Page 7: Introduction aux services WEB Master Miage SID Université NANCY2

Concrètement

Serveur(Web service)Client

HTTP

HTTP

Transport des messages

PB de FIREWALL

Page 8: Introduction aux services WEB Master Miage SID Université NANCY2

Intérêt

• Bottom-up– S'appuie sur des technologies bien ancrées: XML,

HTTP

• Procède par évolution (révolution)– SOAP, RPC,…

• Rassemblement des plus grands acteurs pour définir les standards et offrir les outils:– IBM, ORACLE, MICROSOFT, BEA, SUN,…

– WSI (Web Services Interoperability Organization)

Page 9: Introduction aux services WEB Master Miage SID Université NANCY2

Cadre général

• Systèmes patrimoniaux– Legacy system– Protection de l’investissement logicielle dans le temps– Approche sous forme de composants (brique)– Cohabitation des composants (agrégation applicative)

• Urbanisation des systèmes– Communication avec les systèmes d’information des

partenaires (clients, fournisseurs, sous-traitants,…)– B-to-B– Interopérabilité (indépendant des langages et des

plateformes)

Page 10: Introduction aux services WEB Master Miage SID Université NANCY2

Architecture répartie

• Application = assemblage de services

• Combinaison de services – Internes– Ou externes

• Tout interne : EAI (Intégration d'applications d'entreprise)

• Tout externe : Portail d'entreprise

Page 11: Introduction aux services WEB Master Miage SID Université NANCY2

Exemple "Comparateur de prix"

Distributeur(1)

Distributeur(n)

Comparateur

Client

prix/produits

Page 12: Introduction aux services WEB Master Miage SID Université NANCY2

Exemple "Agence de voyage"

Réservationhôtel

Réservationtransport

Agence

Client

prix/disponibilités

Page 13: Introduction aux services WEB Master Miage SID Université NANCY2

Architecture typique

Fournisseur(1)

Fournisseur(2)

Serveur

Client

Annuaire

Enregistrement

Invocation d'un service

Interrogation de service

Page 14: Introduction aux services WEB Master Miage SID Université NANCY2

Définition

• Web service :– Middleware Internet qui permet de connecter

les applications des entreprises à celles de leurs clients et partenaires

– Ensemble de spécifications de composants permettant l’interopérabilité des applications

Page 15: Introduction aux services WEB Master Miage SID Université NANCY2

Technologies

XML

SOAP

WSDL

SAX

DOM

JAX-RPC

XSLT

UDDI

BEANS

JAXB

JAVA

RMI SERVLET

JSP

HTTP

TOMCAT

ANT

JAXR

Page 16: Introduction aux services WEB Master Miage SID Université NANCY2

Plates-formes

.NET J2EE

SOAP/ XML

.NET Framework

Visual Studio

… AXIS

HTTP

JAX-WS XFIRE

NetBean Eclipse

Page 17: Introduction aux services WEB Master Miage SID Université NANCY2

Un mot sur .NET

Page 18: Introduction aux services WEB Master Miage SID Université NANCY2

Un mot sur J2EE

J2EE

SOAP/ XML

JAX-WS AX

IS

(Apa

che)GlassFish

HTTP

JAX-RPC

XF

IRE

(Cod

eHau

s)

Col

dFus

ion

(Mac

rom

edia

)

WE

BS

PH

ER

E(I

BM

)

WE

BL

OG

IC(B

EA

)

Page 19: Introduction aux services WEB Master Miage SID Université NANCY2

Architecture applicative

Serveur(Web service)

Client(Java/Swing)

Page 20: Introduction aux services WEB Master Miage SID Université NANCY2

Architecture applicative

Serveur(Web service)

Client(Perl|Python|C#)

Page 21: Introduction aux services WEB Master Miage SID Université NANCY2

Architecture applicative

Serveur(Web service)

Conteneur Web(Tomcat, JSP|Servlet)

Navigateur

Page 22: Introduction aux services WEB Master Miage SID Université NANCY2

Architecture applicative

Serveur(Web service)

Client- WAP(J2ME)

Page 23: Introduction aux services WEB Master Miage SID Université NANCY2

Cadre conceptuel

• Service Oriented Architecture (SOA)– Client / Prestataire– Contrat

interface

implémentation

PRESTATAIRECLIENT

contrat

Page 24: Introduction aux services WEB Master Miage SID Université NANCY2

Références

• Services Web avec J2EE et .NET, conception et implémentation. L. Maesano et al… Eyrolles

• The Java Web Services Tutorial. E. Amstrong et al.. (http://java.sun.com/webservices/)

• JAVA et SOAP. R. Englander. O’Reilly• Java Web Services For Experienced

Programmers. H. M. Deitel et al… Prentice Hall