How to call a Web Service in Activiti?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2014 04:01 PM
Hi,
I'm trying to read some data from a Sharepoint and have created a Java class that can do this outside of Activiti.
I am now trying to get this to work within Activiti, but I keep getting the below error:
The code I added to my BPMN XML is as below
Can anyone tell where I am going wrong, or if there is an easy way to run a Web Service in Activiti?
With Regards
I'm trying to read some data from a Sharepoint and have created a Java class that can do this outside of Activiti.
I am now trying to get this to work within Activiti, but I keep getting the below error:
08:42:27,658 [http-8080-4] INFO org.activiti.engine.impl.bpmn.deployer.BpmnDeployer - Processing resource LiveSharepointReader.bpmn20.xml08:42:27,801 [http-8080-4] ERROR org.activiti.engine.impl.interceptor.CommandContext - Error while closing command contextorg.activiti.engine.ActivitiException: Errors while parsing:Could not find importer for type http://schemas.xmlsoap.org/wsdl/ | line 3 | column 5Could not import item of type http://schemas.xmlsoap.org/wsdl/ | line 3 | column 5
The code I added to my BPMN XML is as below
<import importType="http://schemas.xmlsoap.org/wsdl/" location="https://sp.kompany.com/sites/Global/_vti_bin/Lists.asmx?wsdl" namespace="http://schemas.microsoft.com/sharepoint/soap/" />
Can anyone tell where I am going wrong, or if there is an easy way to run a Web Service in Activiti?
With Regards
Labels:
- Labels:
-
Archive
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2014 09:16 PM
I don´t think is a good idea to import the wsdl definition directly into the bpm definition. I do a lot of WS calls from my flows, but I´ve always used custom Java classes invoked as aSystem Task or Groovy scripts.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2014 05:16 AM
Would you be able to provide a working example of a Web Service being called as a Service Task within Activiti? I've tried doing this but I keep getting a "401 - Unauthroized" error when the code tries to authenticate the Web Service.
