cancel
Showing results for 
Search instead for 
Did you mean: 

Calling External Web Service from Workflow

Former Member
0 Kudos

Hello Gurus,

I'm working on a workflow development in which I have to invoke an external web service (non-SAP) from a workflow task. As soon as the work item is created in SAP, I need to send a notification via web service call. So I thought of having a workflow step to call the web Service.

(1) Can I use WF_EXTSRV wihout having a BSP application.? There is no BSP application in my case.

(2) What are the possible options I have to achieve this?

Thanks

Steve.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I don't see a reason why you should necessarily use WF_EXTSRV.

Just create ABAP class in SE24, for example ZCLASS. Add interface IF_WORKFLOW to the interface tab. Implement the interface methods. Actually you don't really even have to implement them, just go into the methods and activate them. Now you have a workflow compatible ABAP class.

Now create new static&public method to it, for example CALL_WEBSERVICE. Add any importing and exporting parameters that you need (what info you need from workflow to call the web service and vice versa). Code your web service call from this new method.

Create new task in PFTC. Call your new method ZCLASS->CALL_WEBSERVICE. from the task. Add the task as a new step into the workflow in a suitable place.

Regards,

Karri

Edited by: Karri Kemppi on Nov 30, 2011 10:04 PM

Former Member
0 Kudos

Karri,

Thanks for your reply. My client does not want to write any code to invoke the web service (It was done previously in the system for some workflow object , but don't know how did they do it). When I was exploring about this topic in SDN, I came across WF_EXTSRV tcode to invoke the web service from workflow.

Appreciate your help.

Thanks

Steve.

Former Member
0 Kudos

Hi

Try to use Business object

WEBSERVICE

You should take help from the following standard Task

17900019

51807978

51807979

66700007

66700008

66700009

66700010

66700011

66700012

66700013

66700014

77000298

77000299

77000300

77000301

Thanks

Arghadip