Question1. Consider the following XML document that contains information on people, books and literature prizes:
Nadine Gordimer
J M Coetzee
The Conservationist
Life and Times of Michael K
Disgrace
The Nobel Prize in Literature
1991
The Booker Prize
1974
1983
1999
The above representation captures facts such as the Nobel Prize in Literature was awarded to Nadine Gordimer in 1991 and the Booker Prize was awarded for the book with title "Disgrace" in 1999.
(i) Write a DTD fragment which comprises element and attribute declarations for the elements person, award and author.
(ii) Write an XSLT template rule which will produce an HTML table of awards of the Booker Prize. The table should have two columns: the first containing the year of the award, the second containing the title of the book that won the prize in that year.
Question2. Discuss three properties of the WebService attribute.
Question3. Discuss three properties of the WebMethod attribute.
Question4. Explain how the following protocols are used to invoke an XML Web Service:
(i) HTTP-Get
(ii) HTTP-Post
(iii) SOAP.
Question5. Using a diagram, illustrate how SOAP serialization / deserialization works when implementing a Web Service.
Question6. Write a .NET Web Service to create a currency converter that converts US Dollar to the following currencies:
England: 0.686
Canada: 1.603
EURO: 1.118
The Parameter inputs are: Country and Amount.