You are on page 1of 3

Tunku Abdul Rahman College

Advanced Diploma in Science AACS5274 Web Services


Tutorial 8 1. 2. 3. crossing trust domain, ensuring scalability, providing value-added services Describe the role of the SOAP intermediary in context of the SOAP message transmission. Give TWO (2) examples of the functions served by the intermediary. Explain the role of env:role in a SOAP header.

The use cases above define the need for SOAP intermediaries in a message path. Elaborate the use cases above. 4. One problem with the SOAP specification is that it contains a lot of rules that may or may not be enforced. Thus it is very likely that two conforming SOAP implementations will not implement the same collection of optional features and thus be incompatible. Eric Newcomer, Understanding Web Services XML, WSDL, SOAP, and UDDI. Do you agree with the statement above? Justify your answer. 5. Examine the SOAP message below, Figure 8.1: <SOAP-ENV:Header> <t:Transaction xmlns:t="www.xmlbus.com" SOAP-ENV:mustUnderstand="1"> 5 </t:Transaction> </SOAP-ENV:Header> Figure 8.1 Must the SOAP node process the SOAP block according to the requirements of the header? Explain the purpose of this attribute.

Page 1 of 3

6.

Figure 8.2 shows sophisticated SOAP messaging. Answer the following question based on the figure.

Figure 8.2: Sophisticated SOAP messaging (i) (ii) Describe the role of the SOAP intermediary in the context of the SOAP message transmission. An interesting aspect of Figure 2 is that SOAP enables message exchange over a variety of underlying protocols. Explain SOAP transport protocol based on the figure.

7.

(a)

UserLand, DevelopMentor, and Microsoft have developed and published a Simple Object Access Protocol (SOAP) specification on the Web. SOAP is typically designed to provide an independent, abstract communication protocol which is capable of bridging two or more businesses and it is also used to define a messaging framework for exchanging formatted XML data across the Web. The authors of the SOAP specification intended to keep the specification simple and small. (i) (ii) What is the rationale for keeping the SOAP specification simple and small? Define the elements of the SOAP specification as it is used to provide a common XML messaging protocol for the Web.

(b)

Write the SOAP request and response message based on the following information: Input Parameters staffID itemCode quantity Date Type string integer integer

Output Parameter totalPrice Note:

Date Type double

A SOAP request sends three parameters, staffID, itemCode, and quantity with corresponding data types, to a Web service. The Web Services will return the totalPrice as a SOAP response message. Use a getTotalPrice as a SOAP requests name within the body and its targeted URL is www.morrisan.com/calculatePayment. An XML namespace is required to qualify application-specific element names. Page 2 of 3

SOAP Header elements and Envelope namespace are required on the SOAP message.

(c)

When an error occurs during processing in Q5 (b), the response to a SOAP message is a SOAP fault block in the body of the message and the fault is returned to the sender of the message. List and briefly describe sub-elements of the SOAP fault body block.

Page 3 of 3

You might also like