Invoking the guest management web service
Before going deep inside SOAP requests, we will look into invoking our sample web service. We will invoke the addGuest
operation and add a new guest in our sample hotel reservation system. Next, we will get the details of the added guest by calling getGuestDetails
operation. Finally, we will delete the guest by invoking the deleteGuest
operation. This can be performed as described in the following steps:
Select Request1 which appears under the addGuest operation, shown in the left-hand side pane in the soapUI project.
In the request editor, which appears at the right-hand side, you will find the SOAP 1.1 request which is supposed to be used in invoking the
addGuest
operation.The inputs which should be specified by the user are denoted by ? in the request editor. Replace them with the appropriate input values as shown in the following XML fragment:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http//sample...