Software Engineering for Smart Data Analytics & Smart Data Analytics for Software Engineering
Due at Thursday, December 10th, 11:00 am (before the lecture starts) |
---|
https://svn.iai.uni-bonn.de/repos/IAI_Software/se/atsc2009ws/samplesolutions/
Projects: A06T14_WSDL_Solution
and A06T15_Payment_Paypal_Solution
3+2 points |
---|
In the lecture, we gave an example for a WSDL description of a Webservice (Slide 42 of atsc-2009-06-SOA.pdf).
You can find this as A06T14_WSDL/myservice.wsdl.xml
in your repository.
In our example, the method myMethod
did have an empty response.
Now, we want to change it to return the two values and .
myservice.wsdl.xml
accordingly.myMethod(5, 5.0)
into the reponse.xml
file.Read the following article on the different WSDL styles: WSDL Style Overview. In the lecture and the examples we used the document/literal wrapped WSDL style. Why is this style commonly used and what are its limitations?
4+1 points |
---|
We would like to connect our Hotel to an external payment service. To have a realistic setting, we are using the real Paypal infrastructure!
Your task is completed when you payed 10 Euros to our Hotel's PayPal account. Of course no real money is transfered, we are using the testing (sandbox) environment. Check out the project A06T16_Payment_Paypal into your workspace an follow the instructions in org.iai.webservices.PaypalTest class.2)
The following resources are helpful for this task:
Look at the output of the test. What is the SOAP header used for? For what else could the header be used?
4 points |
---|
Session beans take the role of a controller in the EJB component model. Your task is to map a use case from task 7 to a session bean:
Use Case: Reserve
ReserveRooms
. In a real implementation all display operation would be carried out on a (web) client, e.g. realized by the architectural pattern MVC. Here a unit test is sufficient which simulates the input and output of the session bean, e.g. calls a method to retrieve available rooms and checks the number of returned rooms.