cancel
Showing results for 
Search instead for 
Did you mean: 

[REST] Problem with deployment

goddanao
Champ in-the-making
Champ in-the-making
Hi all,
i'm trying to build a js client for the activiti REST-API. Till now i can login and do all operations supported by the rest-api except the deployment of a process. As i read from the api, it's a normal form post…

I did an ajax POST (with correct Auth info) and the resulting exchange with the activiti rest service ends always in a 405 (method not allowed).

Anyone can point me in the right direction?
Thankyou!

—- HEADERS —-

Request URL:https://tomcat:8443/workflow-rest/service/deployment
Request MethodSmiley TongueOST
Status Code:405 Method Not Allowed

Request Headers
Accept:text/html, */*; q=0.01
Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
Authorization:Basic dW5kZWZpbmVkOnVuZGVmaW5lZA==
Connection:keep-alive
Content-Length:4402
Content-Type:multipart/form-data; boundary=—-WebKitFormBoundarygOup0pYkyIfD27et
Cookie:JSESSIONID=06E540B5B50342EA67D14E020E05CCB4; running=true
Host:tomcat:8443
Origin:https://tomcat:8443
Referer:https://tomcat:8443/obiquity/
User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Ubuntu/12.04 Chromium/18.0.1025.151 Chrome/18.0.1025.151 Safari/535.19
X-Requested-With:XMLHttpRequest
Request Payload
——WebKitFormBoundarygOup0pYkyIfD27et
Content-Disposition: form-data; name="deployment"; filename="TaskCandidateTest.testMultipleCandidateGroups.bpmn20.xml"
Content-Type: text/xml


——WebKitFormBoundarygOup0pYkyIfD27et–

Response Headers
Accept-Ranges:bytes
AllowSmiley TongueOST
Content-Length:487
Content-Type:text/html;charset=UTF-8
DateSmiley Frustratedat, 02 Jun 2012 09:28:23 GMT
Server:Restlet-Framework/2.0.1
1 REPLY 1

goddanao
Champ in-the-making
Champ in-the-making
FYI … RESOLVED …
i did a maven overlay on activiti-rest and force org.restelet version 2.0.14 instead of 2.0.1 …
The problem goes away …

A.