Question: The following is a web service endpoint interface that uses JAX-ws. @WebService public interface HotelOffers { @WebMethod HotelOffer getHotelOffer(String hotelName); } (a) Write a sample


The following is a web service endpoint interface that uses JAX-ws. @WebService public interface HotelOffers { @WebMethod HotelOffer getHotelOffer(String hotelName); } (a) Write a sample SOAP request for the above method. (5 marks] (b) Write a sample SOAP sample response for the above method. (5 marks] (c) Add a new method to the above interface to add hotel offers. [5 marks] Represent the following in JSON. (5 marks) Grand Sea Hotel has the following restaurants. Restaurant Name: Amazing India This is an Indian style restaurant. Restaurant can accommodate upto 90 guests. Can be booked for private parties. Both menu based and buffet available. This restaurant is open from 10.30am to 10.30pm. Reservation is not required. Restaurant Name: OnTheBlock This is an Fusion style restaurant. Buffet is not available (only menu based orders). This restaurant is open 24 hours. Reservation is required. Restaurant can accommodate upto 75 guests. Offers discounted upto 25% to XYZ credit card holders. It has an open area
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
