Quantcast
Channel: SCN : All Content - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 4013

Invoke Webservices Using SAP Data Services 4.2

$
0
0

Sometimes it is required to load data to a system working based on webservices.

 

For example for a requirement, where the downstream system is Oracle File Based Loader which demands a file from the storage Server as an
input, Web Services will be the preference for most of the users as it can handle multiple files from a single zip /archive file and load to many tables.

 

We would like to help you understand the simple steps to invoke web services through Data Services.

 

Steps involved.

 

  1. Create a Data Store for web services.

            Provide the link of the web services and its credentials as in below sample.

1.jpg

 

 

2.     Import the function to WS data store

 

 

A web service will usually comprise of many functions. The function which is needed for a particular requirement has to be imported to the
data store created for web services under its functions segment

2.jpg

 

 

 

3.     Create the Job

 

Create a job which will take care of the following things

3.jpg

 

 

 

The input details required for the web services can be declared as global parameters and prepare the customized columns as per the requirement. The below columns are the required columns for the sample given.

 

4.jpg

 

 

Create a nested /unnested column structure which is equivalent to the web services input data structure.

 

 

5.jpg

 

 

In order, to get the column structure of the web services, do the below steps.

 

Right click on the output schema -> New Function Call -> Select the Web services Data Store -> Select the web services function from the list which you need to invoke.

 

6.jpg

7.jpg

 

 

 

Drag and drop or key in the Input Schema name to the text box in the Input parameter Definition pop up

 

The success or failure of the function call can be verified using the return codes of the web services function. According to the error handling design you can divert the results to error tables.

 

8.jpg

 

 

Default return code for a successful web service call is 0.


Viewing all articles
Browse latest Browse all 4013

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>