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:

  1. Go to transaction SE80, and select the menu option Edit Other Object.
  2. 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.
  3. The wizard will then start. The first step will ask for the Source of the Web service. Choose the ...

Get SAP ABAP Advanced Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.