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.
- Navigate to Guided Procedures – Design Time . Select a folder of your choice.
- Select Create callable object . Enter a name for the callable object and select Service – Web Service as the type of callable object.
- In the WSDL URL field enter:
- With your cursor still in the WSDL URL field, press enter on your keyboard. You will then see the interface definition for this service.
- Select GetWeatherByZipCode. Select Next.
- Notice the Input Parameters. You should see zipcode as the input parameter. Select Next.
- 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!