Designing the web services
Our sample hotel reservation system is implemented using SOAP-based web services. As per the three basic entities used in the system, we can plan to have three web services explained as follows:
GuestManagementService:
GuestManagementService
will be used to add, delete, or retrieve the details of guests in system. This web service consists of the following methods:addGuest
(name
,address
,age
)getGuestDetails
(name
)deleteGues
t (name
)
RoomManagementService:
Adding, deleting, and retrieving the details of rooms are managed by the
RoomManagementService
which includes the following methods:addRoom
(roomNumber
,roomType
,roomSize
)getRoomDetails
(roomNumber
)deleteRoom
(roomNumber
)
ReservationService:
ReservationService
is used to manage the room reservations of the system, such as creating a new reservation, finding out the reservation details of a particular room, and removing an existing reservation. The following methods are included in this web service:addReservation...