10
EDBT’04 – A Framework for Context-Aware Adaptable Web Services 1 A Framework for Context- Aware Adaptable Web Services Markus Keidl and Alfons Kemper Universität Passau Fakultät für Mathematik und Informatik 94030 Passau <lastname>@db.fmi.uni-passau.de

A Framework for Context-Aware Adaptable Web Services

Embed Size (px)

DESCRIPTION

A Framework for Context-Aware Adaptable Web Services. Markus Keidl and Alfons Kemper Universität Passau Fakultät für Mathematik und Informatik 94030 Passau @db.fmi.uni-passau.de. Insert Stylesheet. Client. MyBook Web Service. Location. Convert Currency. Client. - PowerPoint PPT Presentation

Citation preview

Page 1: A Framework for Context-Aware Adaptable Web Services

EDBT’04 – A Framework for Context-Aware Adaptable Web Services 1

A Framework for Context-Aware Adaptable Web Services

Markus Keidl and Alfons Kemper

Universität PassauFakultät für Mathematik und Informatik

94030 Passau<lastname>@db.fmi.uni-passau.de

Page 2: A Framework for Context-Aware Adaptable Web Services

EDBT’04 – A Framework for Context-Aware Adaptable Web Services 2

The Context Framework

Context: Information about clients and their environment that is used by Web services to provide clients with a customized and personalized behavior

Examples: client location or device type

Client

Client

Location

Insert StylesheetMyBook

Web ServiceConvert Currency

Page 3: A Framework for Context-Aware Adaptable Web Services

EDBT’04 – A Framework for Context-Aware Adaptable Web Services 3

Features of the Context Framework

Separation of functional duties into external components: context plugins and context services

Transparent and automatic usage of these components

Generic solution, i.e., components are usable for a variety of Web services

Page 4: A Framework for Context-Aware Adaptable Web Services

EDBT’04 – A Framework for Context-Aware Adaptable Web Services 4

The Context Model

Context consists of several context blocks

A context block is associated to one context type

A context type defines the type of context information in a context block, e.g., location, client device

At most one context block is allowed for a context type within a context

Context is transmitted as a SOAP header block

Context

Context Block

Context Block

Context Type:Location

Context Type:Client

Page 5: A Framework for Context-Aware Adaptable Web Services

EDBT’04 – A Framework for Context-Aware Adaptable Web Services 5

Context in a SOAP Message

SOAP Envelope

SOAP Header

SOAP Body

Header Block: Context

Context Block

Context Block

Header Block

<env:Envelope xmlns:env="..."> <env:Header> <Context xmlns="http://sg.fmi.uni-passau.de/context"> <Client> <Hardware> <Defaults> http://example.com/PDA </Defaults> <ScreenSize>320x320</ScreenSize> <IsColorCapable>Yes</IsColorCapable> </Hardware> </Client> </Context> </env:Header> <env:Body> <!-- serialized object data --> </env:Body></env:Envelope>

Page 6: A Framework for Context-Aware Adaptable Web Services

EDBT’04 – A Framework for Context-Aware Adaptable Web Services 6

Service Platform

Context Life-Cycle

SOAP Response

Web Service

Co

nte

xt

Context

Client

SOAP Request

Client Location

Stylesheet

Insert Stylesheet

Convert Currency

Page 7: A Framework for Context-Aware Adaptable Web Services

EDBT’04 – A Framework for Context-Aware Adaptable Web Services 7

Automatic Context Processing

Processing of context blocks within a SOAP message in arbitrary order

Invocation of appropriate context plugins and context services

Context plugins and context services:Associated to one dedicated context type Input: context block and messageOutput: possibly modified message

Page 8: A Framework for Context-Aware Adaptable Web Services

EDBT’04 – A Framework for Context-Aware Adaptable Web Services 8

Components for Context Processing Context plugins: Java objects implementing the ContextPlugin interface Installation on local host Access to internal data structures of service platform

Context services: Web services implementing the ContextService WSDL interface Available anywhere on the Internet Extendible at runtime Only access to context and Web service messages

Page 9: A Framework for Context-Aware Adaptable Web Services

EDBT’04 – A Framework for Context-Aware Adaptable Web Services 9

Example ScenarioClient Location

StylesheetFinderContext Plugin

UDDIRepository

CurrencyConverterContext Service

MyBookWeb Service

Client CurrencyInfoWeb Service

Page 10: A Framework for Context-Aware Adaptable Web Services

EDBT’04 – A Framework for Context-Aware Adaptable Web Services 10

Thank you for your attention!