cancel
Showing results for 
Search instead for 
Did you mean: 

Calling a web service in ABAP

Former Member
0 Kudos

Hello Experts!

After I am assuming the SOAP Experts at the SOAP Forum

are being already on christmas vacation

I saw no other possiblitiy to post my question right here.

I have created a web service through:

Open the affected function Module .

Choose Utilities -> More Utilities -> Creating a Web Service -> From Function Module.

Later you can test it with SOAMANAGER etc.

The goal is now (requirement)

Calling a web service in ABAP.

How can I generally call a (eg .above created by me ) webservice with abap which is existing on the sap system (Web Services which are generated from Function Modules)

Has really nobody such a problem ever before ?

Regards

ertas ilhan

Accepted Solutions (1)

Accepted Solutions (1)

former_member589029
Active Contributor
0 Kudos

To be able to consume a web service in ABAP you need to generate a Proxy Class.

- SE80

- Enterprise Services

- create Proxy Object

The easiest way to do it is with the WSDL file that you'll get from the existing Web Service. In your proxy class it will generate a method which you can then call within your program to consume that web service.

Hope that helps,

Michael

Answers (3)

Answers (3)

Former Member
0 Kudos

vishal it is not web service creation what I ment .

Michael is correct it concerns "consuming a web service in ABAP ".

Regards

ertas

Former Member
0 Kudos

Michael thank you very much.

You are saying:

The easiest way to do it is with the WSDL file that you'll get from the existing Web Service. In your proxy class it will generate a method which you can then call within your program to consume that web service.

I understand the first part with the WSDL file but the second part it is unclear to me with

In your proxy class it will generate a method which you can then call within your program to consume that web service

Can you please explain me this more detailed.

Thanks

ertas

Former Member
0 Kudos

Hi

Hope this doc will be of help : https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80fa3dff-ce76-2a10-3f94-f3df8f2d...

you search "web service creation" in sdn there are various document available for the same.

Thanks

Vishal Kapoor