cancel
Showing results for 
Search instead for 
Did you mean: 

How to trigger Web Service created by WebMethods

former_member734916
Participant
0 Kudos
551

Hello Experts,

In our project WebMethods is using as middleware. We need to pass some XML files from SAP to some third party system using WebMethods (ESB).

So, here WebMethods is creating a Web Service and from SAP we need to trigger the WebService and also I need to capture the response returned by the third party system using Web Service.

Can anybody guide with step by step procedure.

Thanks in advance.

Krishna Yerram.

View Entire Topic
former_member589029
Active Contributor
0 Kudos

To be able to consume a web service in your SAP system directly you need to generate a proxy-client for each web service you would like to consume.

Workbench - Enterprise Services - Client Proxies

The easiest way to generate a client proxy is by using the WSDL definition from the Web Service

Enterprise Services - Create - Proxy Object - Service Consumer - Local File (this is your WSDL file) - put in package assignment and transport request and your proxy class will be generated.

If you look into the generated proxy class you'll find a method you can call from anywhere in your ABAP code to consume the web service.

Hope that helps,

Michael

former_member734916
Participant
0 Kudos

Hi Michael,

Thank you for your reply. It is very helpful.

Do you have any step by step procedure to create a customer proxy and provider proxy or any documentation regarding this.

Thanks in advance.

Krishna Yerram.

former_member156446
Active Contributor
0 Kudos

[ABAP Proxy Generation|http://help.sap.com/saphelp_nw04/helpdata/en/ba/f21a403233dd5fe10000000a155106/content.htm]

former_member734916
Participant
0 Kudos

Hi,

Thanks for your replay. This link is helpful in creating proxy.

Here in my scenario, Web Methods (ESB middleware) is creating a Web Service that means a URL.

From SAP I need to trigger that URL.

Finally, I will create an XML string with my internal table data and concatenate it to the URL provided by the ESB and have to invoke it. ESB will transfer this XML data to third party system.

SAP need to trigger the Web Service created by ESB.

Please help me if you have any idea.

Thanks in advance.

Krishna Yerram.

former_member156446
Active Contributor
0 Kudos

Check if this discussion might help:

Consuming Web Service from ABAP[Consuming Web Service from ABAP|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/847] [original link is broken] [original link is broken] [original link is broken]; by Durairaj Athavan Raja