cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti + webservice

diegom42
Champ in-the-making
Champ in-the-making
Hi! Can anyone tell me how to implement a webservice within a service task? I need a kind of tutorial. I have the wsdl and I don't know how to use it.

Thanks!!
1 REPLY 1

atifelkhachine
Champ in-the-making
Champ in-the-making
Hi,

One way is to use wsdl2java to generate your client stub and add the generated classes to your project. After that you have to implement this interface JavaDelegate and use it within your service task (Main config -> Java class -> Select a service class).
Last step is to call your web service in the override method like this :


@Override
public void execute(DelegateExecution execution) throws Exception {
//TODO call your web service here
}


Best regards,
Atif