AnsweredAssumed Answered

[REST] Problem with deployment

Question asked by goddanao on Jun 2, 2012
Latest reply on Jun 4, 2012 by goddanao
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 Method:POST
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
Allow:POST
Content-Length:487
Content-Type:text/html;charset=UTF-8
Date:Sat, 02 Jun 2012 09:28:23 GMT
Server:Restlet-Framework/2.0.1

Outcomes