I am trying to programmatically deploy a bar file to activiti-explorer by the help of rest api provided. I search the net and forum but couldnot find any example. In the below segment, there are three part:
1. http post sent by restlet api 2. http responce received by the client api 3. the code I wrote wh,ch does not work.
In the code, deploy method is working, but deployInrestlet method does not work. To watch the data sent from the client I used tcpmon program. The main sympthom is that "HTTP/1.1 405 Method Not Allowed". I tested ACTIVITI_REST_URI + "/process-definitions?size=100" address programmatically and I saw that it works correctly. What could be the problem?
—————————— http response received —————————– HTTP/1.1 405 Method Not Allowed Date: Thu, 12 Jul 2012 08:21:37 GMT Accept-Ranges: bytes Allow: GET Server: Restlet-Framework/2.0.8 Content-Type: text/html;charset=UTF-8 Content-Length: 487
<html> <head> <title>Status page</title> </head> <body style="font-family: sans-serif;"> <p style="font-size: 1.2em;font-weight: bold;margin: 1em 0px;">Method Not Allowed</p> <p>The method specified in the request is not allowed for the resource identified by the request URI</p> <p>You can get technical details <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.6">here</a>.<br> Please continue your visit at our <a href="/">home page</a>. </p> </body> </html>