cancel
Showing results for 
Search instead for 
Did you mean: 

Integration Mule with Activiti via REST

antonio_nobre
Champ in-the-making
Champ in-the-making
I am trying to connect one service that i created with mule and it is populated on server. When i connect with this web service via curl PUT and via API of Mule everything goes right. But now when i am calling the same webservice on Activiti Enterprise i get every time the same message:

Response code: 500
Response message: could not parse response to JSON

Do you know i am doing wrong because the reponse from webservice it is this one:

{
accountNumber: "1111"
serviceNumber: "35211111111"
}

Thank you in advance.

Antonio
5 REPLIES 5

jbarrez
Star Contributor
Star Contributor
I would need more information what you are trying to do?  I assume you are calling Mule from Activiti?
What REST url's are you invoking? Are these unprotected URLS?

antonio_nobre
Champ in-the-making
Champ in-the-making
Hi,

Yes i am calling the from the Alfresco Activiti Enterprise one service REST that is just one API created by Mule. The problem is the test of endpoint on activiti always give me the same answer. Response message: could not parse response to JSON, but the other side when i execute the data arrive well. This is just one bug on test button.


Regards,

Antonio

yvoswillens
Champ in-the-making
Champ in-the-making
Hi Antonio,

the response message isn't a error message but merely a warning that parsing the REST response to JSON failed. Which is technically correct in the case that there isn't a JSON object in the response.
But it shouldn't try to parse the response entity in such case. We'll fix that in the next version.

Regards,

Yvo

antonio_nobre
Champ in-the-making
Champ in-the-making
Hi,

By the way what kind of formatthe application is expecting rigth now?


Regards,

Antonio Nobre

yvoswillens
Champ in-the-making
Champ in-the-making
For displaying the result in endpoint test feature it expects a JSON response.
For mapping properties of the response to a variable the response needs to be a JSON object. Arrays are not yet supported.

Regards,

Yvo