the web services game

24
The Web Services Game

Upload: torin

Post on 22-Jan-2016

15 views

Category:

Documents


0 download

DESCRIPTION

The Web Services Game. This game is intended for a non technical audience ; We have purposely simplified technical aspect. What is a Web Service. It is a piece of software that runs remotely, It is accessible over a network (e.g. Internet), - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: The Web Services Game

The Web Services Game

Page 2: The Web Services Game

• This game is intended for a non technical audience;

• We have purposely simplified technical aspect.

2

Page 3: The Web Services Game

What is a Web Service

• It is a piece of software that runs remotely,• It is accessible over a network (e.g. Internet),• It is meant for machine to machine communication,• Independent from programming languages,• It can be operated following specific rules (i.e. protocol),

• There are 2 main protocols in use…

3

Page 4: The Web Services Game

REST Web Services

4

URL

Data / Status

1

2

3

Rea

dsWADL

Page 5: The Web Services Game

SOAP Web Services

5

GET WSDL

WSDL

1 2

3

Rea

ds

SOAP Request

SOAP Response

4

5

Method / Parameters

Data

4 5

WSDL

Page 6: The Web Services Game

6

Page 7: The Web Services Game

SOAP vs. REST

• Based on Standards,

• Only accessed by software,

• Allow description of complex data structure in request and response,

7

• Geared to simplicity,

• A browser can be a client,

• Request as complex as a URL can be,

Page 8: The Web Services Game

Playing the REST Game

8

Page 9: The Web Services Game

The Actors

• The user

• The client application

• The REST Service

• Mr Internet

9

Page 10: The Web Services Game

How to play the REST game

1. Choose the actors

2. Get the User to ask a question to the Client Application

3. Get the Client Application to format a URL with user parameters

4. The Client Application invoked the Web Service with the URL

5. The Web Service processes the request and sends the data back to the Client Application (with the help of Mr Internet)

1. The Client application processed the data and shows to the User

10

Page 11: The Web Services Game

The REST Service

• Name: Dbfetch

• Purpose: To serve sequence of biological entities

• Documentation: http://www.ebi.ac.uk/Tools/dbfetch

• Query Example:• Get sequence of protein Q07812 from UniProt• Get Gene sequence for Ensembl Transcript: ENST00000345358

11

Page 12: The Web Services Game

Dbfetch Documentation

How to build a URL ?

http://www.ebi.ac.uk/Tools/dbfetch/dbfetch?db=${DB}&id=${ID}&format=${FORMAT}&style=raw

URL Parameters

• DB• uniprotkb• ensembl• embl• …

12

• ID • FORMAT• fasta• embl• …

Page 13: The Web Services Game

The REST URL

http://www.ebi.ac.uk/Tools/dbfetch/dbfetch?db=_____&id=_________&format=____&style=raw

13

Page 14: The Web Services Game

The Data – Protein sequence

14

Page 15: The Web Services Game

The Data – Gene sequence

15

Page 16: The Web Services Game

Playing the SOAP Game

16

Page 17: The Web Services Game

The Actors

• The user

• The client application

• The SOAP Service

• Mr Internet

17

Page 18: The Web Services Game

How to play the SOAP game

1. Choose the actors

2. Get the User to ask a question to the Client Application

3. Get the Client Application to retrieve the WSDL from the Web Service (with the help of Mr Internet)

4. The Client Application chooses the method and parameters

5. The Client Application sends the SOAP request to the Web Service (with the help of Mr Internet)

6. Web Service process the request and generate data, wraps it in a SOAP Response and send it back to the Client Application

7. The Client application processed the data and shows to the User

18

Page 19: The Web Services Game

The SOAP Service

• Name: Dbfetch

• Purpose: To serve sequence of biological entities

• Documentation: http://www.ebi.ac.uk/Tools/webservices/services/dbfetch

• Query Example:• Get sequence of protein Q07812 from UniProt• Get Gene sequence for Ensembl Transcript: ENST00000345358

19

Page 20: The Web Services Game

Dbfetch WSDL

Where is the WSDL file ?

http://www.ebi.ac.uk/ws/services/WSDbfetchDoclit?wsdl

Methods available

• getSupportedDbs

• getSupportedFormats

• getDbFormats• db

20

• fetchData• query (i.e. db:id)• format• style

Page 21: The Web Services Game

A SOAP Request

Method name: _____________________

Parameters:

21

Name Value

Page 22: The Web Services Game

The Data – Protein sequence

22

Page 23: The Web Services Game

The Data – Gene sequence

23

Page 24: The Web Services Game

Rafael Jimenez

Samuel Kerrien

You for being such good actors ;)

Acknowledgments