Service Computing WS 2012 Exercise 4 - IAAS

Service Computing WS 2012 Exercise 4 - IAAS

Prof. Dr. Frank Leymann / Olha Danylevych

Institute of Architecture of Application Systems

University of Stuttgart

Service Computing

WS 2012

Exercise 4

Date: 13.09.12 (13:00 – 14:30, Room 38.02)

Task 4.1: SOAP: Document Style and RPC Style

A customer wants to retrieve information about an article of your webshop. The

communication between the customer and the online store is done through SOAP Web

Services. The SOAP nodes of the customer and the webshop exchange messages to achieve

the following goals:

1. The customer wants to retrieve the price of an item given its name and producer.

2. The customer wants to retrieve all articles of a particular producer.

Sketch the requests of the customer and the replies of the online store in form of the SOAP

messages. The answers should be sent in the document style as well as in RPC style.

Using the RPC-Style, try different “out-parameters” (e.g. add the possibility of searching

items per release year) and adjust correspondingly the SOAP answers returned by the online

store. Have also a look at:

Task 4.2: WSDL

First, describe using WSDL the portType of the webshop service, called

getPricePortType. The webshop service exposes one operation, called getPrice that,

given in input a string representing the name of the item and a string identifying its

manufacturer, returns its price as a float (nevermind the currency).

Create the following bindings for getPricePortType:

1. SOAP over HTTP using the RPC-Literal style

2. SOAP over HTTP using RCP-encoded style

3. SOAP over HTTP using Document-Literal style

Task 4.3: WS-Addressing

a) What is the usage of an Endpoint Reference (EPR)? How would the Endpoint Reference of

the webshop web service from Task 1.4 look like if:

1. The web service is accessible over HTTP

2. The web service is accessible over JMS

b) The webshop web service offers an asynchronous SOAP operation

GetAccountingData. The operator/provider of the webshop can use the

GetAccountingData operation to get the information about the article sold in the past

30 days.

Upon the invocation of the GetAccountingData operation, the webshop web service

performs the (long-lasting) necessary calculations and answers the next day to the provider

by sending him a message.

How does the online store service know to which address to send the answer


How would you map an asynchronous communication to synchronous transport

protocol (e.g. HTTP)?

How do you map a synchronous communication to an asynchronous transport

protocol (e.g. JMS)?

More magazines by this user
Similar magazines