Additional Blogs by SAP
cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
In this blog we will provide a simple example of using the "Web Service" callable object in guided procedures.

Before using the callable object for web services, you first need to make sure that your J2EE can access external web services. To do this login to your J2EE Visual Administrator tool and look at the Web Services Container entry.

Select the settings and ensure the http proxy settings are set correctly. For my enviroment, I needed the following settings:

Once you make this change, you just need to start/stop the service. Just right click on Web Services Container to stop and to start.

Now you are ready to build the callable object for external webservices!! Follow the simple steps below to build a callable object that calls an external weather service.

  1. Navigate to Guided Procedures - Design Time . Select a folder of your choice.
  2. Select Create callable object . Enter a name for the callable object and select Service - Web Service as the type of callable object.

  3. In the WSDL URL field enter:
    http://www.webservicex.net/WeatherForecast.asmx?WSDL
  4. With your cursor still in the WSDL URL field, press enter on your keyboard. You will then see the interface definition for this service.

  5. Select GetWeatherByZipCode. Select Next.
  6. Notice the Input Parameters. You should see zipcode as the input parameter. Select Next.
  7. Notice the Output Parameters. Select Next and select Finish.

When you test you get something like this:

This example was done on SAP NetWeaver 2004s, support package 08.

So, give it a try and blog about the super cool things you are doing with guided procedures and external web services!

6 Comments