Consuming a Web service
In this recipe, we will see how we can create a client proxy based on a given Web service (using its WSDL document). As an example, we will use the Web service that we created earlier in this chapter. We will use the Web service wizard from the transaction SE80
. This will generate the class and other necessary objects that are needed to call the Web service.
How to do it...
We will now follow the steps as shown:
Go to transaction
SE80
, and select the menu option Edit Other Object.On the dialog box that appears, choose the Enterprise Services tab and in the Client Proxy field enter a suitable name. Then click on the Create button.
The wizard will then start. The first step will ask for the Source of the Web service. Choose the option URL/HTTP Destination and click on Continue.
For the next step of the wizard, enter the WSDL URL of our Web service binding. This is the same URL as shown in the Service Definition Overview tab in the
SOAMANAGER
transaction.Enter the URL in...