|Due at Thursday, December 10th, 11:00 am (before the lecture starts)|
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 .
myMethod(5, 5.0)into the
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?
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?
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.