Calling BPM Engine with REST web services

1
0
-1

Hello,

Java 1.7
Windows 7
Bonita 7.0.2

I'm trying to use the bonita REST API to invoke a start process. I'm using Talend Integration Suite to call the REST service.

I'm able to call the login service and return back the JSESSIONID. With the sessionID, I'm trying to call a GET to "http://localhost:8080/bonita/API/bpm/process".

The return response is

Are there any additional configuration I need to perform for this to work out of the box? Are there any additional headers I need to pass in beside the JSESSIONID?

I have no idea why I'm getting a NotAuthorizedException.

Exception in component tRESTClient_1
javax.ws.rs.NotAuthorizedException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.apache.cxf.jaxrs.client.AbstractClient.convertToWebApplicationException(AbstractClient.java:463)
at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:881)
at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:852)
at org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:410)
at org.apache.cxf.jaxrs.client.WebClient.get(WebClient.java:594)
at accountmanagement.getavailableprocesses_full_0_1.getAvailableProcesses_FULL.tRESTClient_1Process(getAvailableProcesses_FULL.java:2231)
at accountmanagement.getavailableprocesses_full_0_1.getAvailableProcesses_FULL.tJava_1Process(getAvailableProcesses_FULL.java:1640)
at accountmanagement.getavailableprocesses_full_0_1.getAvailableProcesses_FULL.runJobInTOS(getAvailableProcesses_FULL.java:2745)
[statistics] disconnected
at accountmanagement.getavailableprocesses_full_0_1.getAvailableProcesses_FULL.main(getAvailableProcesses_FULL.java:2594)
Job getAvailableProcesses_FULL ended at 14:54 27/08/2015. [exit code=1]

No answers yet.
Notifications