1 mapping the dais concepts simon laws (ibm) sastry malladi (oracle) savas parastatidis (univ. of...

23
1 Mapping the DAIS Concepts Simon Laws (IBM) Sastry Malladi (ORACLE) Savas Parastatidis (Univ. of Newcastle)

Upload: antony-marsh

Post on 18-Jan-2016

221 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 1 Mapping the DAIS Concepts Simon Laws (IBM) Sastry Malladi (ORACLE) Savas Parastatidis (Univ. of Newcastle)

1

Mapping the DAIS Concepts

Simon Laws (IBM)

Sastry Malladi (ORACLE)

Savas Parastatidis (Univ. of Newcastle)

Page 2: 1 Mapping the DAIS Concepts Simon Laws (IBM) Sastry Malladi (ORACLE) Savas Parastatidis (Univ. of Newcastle)

2

Background

Educate DAIS WG about web services infrastructure WS-I, WS-Context, WSRF

Do we have to make a choice of approach? Implicit vs explicit data resource addressing Service vs resource OGSA have chosen WSRF and the implicit approach

Currently it seems that the answer is yes The service consumer must take different actions

depending on whether an implicit or explicit approach is chosen

However approaches can be mixed and matched

Page 3: 1 Mapping the DAIS Concepts Simon Laws (IBM) Sastry Malladi (ORACLE) Savas Parastatidis (Univ. of Newcastle)

3

Approach

How do we access data resources through various web services based infrastructure?

Scenarios Stateful interactions with data resources Sessions with data services Discovery of data resources Access to metadata about data resources and/or services Third-party delivery

Infrastructures Web Services-Interoperability (WS-I) only specifications WS-I plus WS-Context WS-I plus WS-RF

Page 4: 1 Mapping the DAIS Concepts Simon Laws (IBM) Sastry Malladi (ORACLE) Savas Parastatidis (Univ. of Newcastle)

4

Scenario 1

Stateful interactions with data resources

Using WS-I only

Page 5: 1 Mapping the DAIS Concepts Simon Laws (IBM) Sastry Malladi (ORACLE) Savas Parastatidis (Univ. of Newcastle)

5

Scenario 1 - Using WS-I

me

ssa

ge

bo

dy

me

ssa

ge

h

ea

de

r

SO

AP

En

velo

pe

<dais:query> SELECT * FROM A</dais:query>

me

ssa

ge

bo

dy

me

ssa

ge

h

ea

de

r

SO

AP

En

velo

pe

<dais:datasetId> urn:dais:dataset:123</dais:datasetId>

urn:dais:dataset:123

A

B

C

internal-id

mapping from externally visible

name to internal id(if required)

Page 6: 1 Mapping the DAIS Concepts Simon Laws (IBM) Sastry Malladi (ORACLE) Savas Parastatidis (Univ. of Newcastle)

6

Scenario 1 - Using WS-I

me

ssa

ge

bo

dy

me

ssa

ge

h

ea

de

r

SO

AP

En

velo

pe

<dais:sort> urn:dais:dataset:123</dais:sort>

A

B

C

urn:dais:dataset:123

Page 7: 1 Mapping the DAIS Concepts Simon Laws (IBM) Sastry Malladi (ORACLE) Savas Parastatidis (Univ. of Newcastle)

7

Scenario 1 - Using WS-I

me

ssag

eb

ody

me

ssag

e

hea

der

SO

AP

Env

elop

e

<dais:sort> urn:dais:dataset:123</dais:sort>

A

B

C

urn:dais:dataset:123

A

B

C

urn:dais:dataset:123

me

ssag

eb

ody

me

ssag

e

hea

der

SO

AP

Env

elop

e

<dais:analyse> urn:dais:dataset:123</dais:analyse>

replication (out-of-band)

Page 8: 1 Mapping the DAIS Concepts Simon Laws (IBM) Sastry Malladi (ORACLE) Savas Parastatidis (Univ. of Newcastle)

8

Scenario 1

Stateful interactions with data resources

Using WS-Context

Page 9: 1 Mapping the DAIS Concepts Simon Laws (IBM) Sastry Malladi (ORACLE) Savas Parastatidis (Univ. of Newcastle)

9

Scenario 1 - Using WS-Context

mes

sage

body

mes

sage

he

ader

SO

AP

Env

elop

e

<dais:query> SELECT * FROM A</dais:query>

mes

sage

body

mes

sage

he

ader

SO

AP

Env

elop

e

<ok />

urn:dais:dataset:123

A

B

C

<ctx:context> context-state</ctx:context>

<ctx:context> context-state</ctx:context>

context-state associated with local resources

Page 10: 1 Mapping the DAIS Concepts Simon Laws (IBM) Sastry Malladi (ORACLE) Savas Parastatidis (Univ. of Newcastle)

10

Scenario 1 - Using WS-Context

mes

sage

body

mes

sage

he

ader

SO

AP

En

velo

pe

<dais:sort />

urn:dais:dataset:123

A

B

C

<ctx:context> context-state</ctx:context>

Page 11: 1 Mapping the DAIS Concepts Simon Laws (IBM) Sastry Malladi (ORACLE) Savas Parastatidis (Univ. of Newcastle)

11

Scenario 1 - Using WS-Context

me

ssag

eb

ody

me

ssag

e

hea

der

SO

AP

Env

elop

e

<dais:sort />

A

B

C

urn:dais:dataset:123

A

B

C

urn:dais:dataset:123

me

ssag

eb

ody

me

ssag

e

hea

der

SO

AP

Env

elop

e

<dais:analyse />

<ctx:context> context-state</ctx:context>

<ctx:context> context-state</ctx:context>

Page 12: 1 Mapping the DAIS Concepts Simon Laws (IBM) Sastry Malladi (ORACLE) Savas Parastatidis (Univ. of Newcastle)

12

Scenario 1 - Using WS-Context

mes

sage

body

mes

sage

he

ader

SO

AP

Env

elop

e

<dais:sort />

urn:dais:dataset:123

A

B

C

<ctx:context> context-state</ctx:context>

mes

sage

body

mes

sage

he

ader

SO

AP

Env

elop

e

<dais:use> urn:dais:dataset:123</dais:use>

<ctx:context> context-state</ctx:context>

Page 13: 1 Mapping the DAIS Concepts Simon Laws (IBM) Sastry Malladi (ORACLE) Savas Parastatidis (Univ. of Newcastle)

13

Scenario 1

Stateful interactions with data resources

Using WS-RF

Page 14: 1 Mapping the DAIS Concepts Simon Laws (IBM) Sastry Malladi (ORACLE) Savas Parastatidis (Univ. of Newcastle)

14

Scenario 1 - Using WS-RF

mes

sage

body

mes

sage

he

ader

SO

AP

Env

elop

e

<dais:query> SELECT * FROM A</dais:query>

mes

sage

body

mes

sage

he

ader

SO

AP

Env

elop

e

<wsa:EndpointReference> <wsa:To> http://service.com/dataset </wsa:To> <wsa:ReferenceProperties> <dais:datasetId> urn:dais:dataset:123 </dais:datasetId> </wsa:ReferenceProperties></wsa:ReferenceProperties>

A

B

C

urn:dais:dataset:123 mapping from externally visible

name to internal id(if required)

internal-id

Page 15: 1 Mapping the DAIS Concepts Simon Laws (IBM) Sastry Malladi (ORACLE) Savas Parastatidis (Univ. of Newcastle)

15

Scenario 1 - Using WS-RF

mes

sage

body

mes

sage

he

ader

SO

AP

En

velo

pe

<dais:query />

urn:dais:dataset:123A

B

C

<dais:datasetId> urn:dais:dataset:123</dais:datasetId>

Page 16: 1 Mapping the DAIS Concepts Simon Laws (IBM) Sastry Malladi (ORACLE) Savas Parastatidis (Univ. of Newcastle)

16

Observations

Page 17: 1 Mapping the DAIS Concepts Simon Laws (IBM) Sastry Malladi (ORACLE) Savas Parastatidis (Univ. of Newcastle)

17

DAIS and Naming

DAIS is specifically about accessing data resources We need to be able to give names to those data

resources OGSA V1 describes a three level naming

scheme Human Readable Names Abstract Names Address

The differences between the approaches lies in the abstract name to address mapping

Page 18: 1 Mapping the DAIS Concepts Simon Laws (IBM) Sastry Malladi (ORACLE) Savas Parastatidis (Univ. of Newcastle)

18

WS-I Registry

Consumer

header

Service

registry lookup

Service Address (URL) http://services/daisdsservice

message

Data Resource urn:dais:ds1

body

Resource Abstract Name e.g urn:dais:ds1

insert abstract name into message body

urn:dais:ds1 http://services/daisdsservice

Service logic is able to locate resource based on message body

URL

-Focus on services-Registy lookup can result in many service URLs- A service can act on many resources-One or more resources can be specified in the message body at service call time - Abstract names can be passed to any service than understands them

Page 19: 1 Mapping the DAIS Concepts Simon Laws (IBM) Sastry Malladi (ORACLE) Savas Parastatidis (Univ. of Newcastle)

19

WS-I + WS-Context Registry

Consumer

header

Service

registry lookup

Service Address (URL) http://services/daisdsservice

message

Data Resource urn:dais:ds1

body

Resource Abstract Name e.g urn:dais:ds1

insert context into message header

urn:dais:ds1 http://services/daisdsservice

Service logic is able to locate resource based on context in message header

Context

associate resource name with context

URL

-Focus on services-Context supports a sequence of messages across many services-Registy lookup can result in many service URLs- A service can act on many resources-One or more resources can be associated with a context

Page 20: 1 Mapping the DAIS Concepts Simon Laws (IBM) Sastry Malladi (ORACLE) Savas Parastatidis (Univ. of Newcastle)

20

WS-RF Registry

Consumer

header

Service

registry lookup

Service Address (URL) http://services/daisdsservice

message

Data Resource urn:dais:ds1

body

Resource Abstract Name e.g urn:dais:ds1

insert reference properties into message header

urn:dais:ds1 EPR( http://services/daisdsservice, ds1)

Service logic is able to locate resource based on reference properties in header

EPR

-Focus on resources-Registy lookup can result in many EPRs- An EPR identifies one or more resources in the context of a service

Page 21: 1 Mapping the DAIS Concepts Simon Laws (IBM) Sastry Malladi (ORACLE) Savas Parastatidis (Univ. of Newcastle)

21

Do We Have To Make A Choice?

Mitigating the differences Optional discriminators in the message body WSDL binding operation parts WSRF TC in OASIS is considering embodiments of the

Implied Resource Pattern WS-Addressing EPR Singleton pattern Context based approaches

Living with the differences Mix and match

Ultimately the consumer of the service has to make a choice To put a resource discriminator in the message body or not

Page 22: 1 Mapping the DAIS Concepts Simon Laws (IBM) Sastry Malladi (ORACLE) Savas Parastatidis (Univ. of Newcastle)

22

General Issues

Stability of supporting infrastructure Interoperability and adoption Composability Tooling Conceptual model

Page 23: 1 Mapping the DAIS Concepts Simon Laws (IBM) Sastry Malladi (ORACLE) Savas Parastatidis (Univ. of Newcastle)

23

Questions

?