Quantcast
Channel: SCN : Document List - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 571

Create a Webservices on ABAP FROM a Function module

$
0
0

In this document, i will describe the creation and the configuration of web service. I suppose tht icm is configured for http and https.

So, i have copy a standard function module GET_TABSIZE_ORA (i work on oracle database ) into ZGET_TABSIZE_ORA. I modify it in order to be launch in remote.

And i use it to create a web service by using se37 : Utilies->Mores Utilities->Create Web Service-> from function module:

image011.png

It opens a wizard, enter name and description, continue:

image013.png

continue:

image015.png

continue, important point about security:

 

image017.png

Enter Package and transport request:

image019.png

 

image021.png

When complete you arrive on these screen, you can modify if you want :

image023.png

image025.png

image027.png

image029.png

image031.png

image033.png

You can leave transaction.

If you want to come back on webservice definition, you can do it through se80:

image035.png

image037.png

 

Now after creating webservices you need to expose itL. transaction SOAMANGER:

Simplified Web Service Configuration:

 

image039.png

You search your webservices, and you can define Authentification method you want to use to expose it:

image041.png

Warning: it must be compatible with Security profile you have defined on web service. Either you will have error message.

 

 

After you can download WSDL (SOAMANAGER -> Web Service Configuration-> Enter your webservice name Apply and Open WSDL document for selected binding or service) and import it on SoapUI for instance to test it :

WSDL.png

image043.png

 

You can make test with SE80 also :

test_se80.png

test_se802.png

test_se803.png

After changing value, you will have to click on "Change parameter" (icon red and white), you will go on previous popup with falg on Keep Request Template.

test_se804.png


Viewing all articles
Browse latest Browse all 571


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