Hi All,
i am trying to get into javascript, prototype and restlet-Framework. The
"GET" Response is smoothly working [see (1) below]. But i now want to write
back a property to a object. It seems that prototype is not great for
Restless Requests (see 2). But on (2) i found a possible solution. Now i
tried an example (3), but it not seems to work. Did someone have a working
PUT-Example?
PS: I used the restlet-framework also from java and there everything works,
so at the moment i can't tell what is the mistake. I put the error from the
console to (4).
Sorry for this long post, but i like to share what i found so far. Maybe
later on someone need something similar.
Regards,
Matthias
___________________
(1)
{{velocity}}
{{html}}
{{/html}}
{{velocity}}
(2)
http://stackoverflow.com/questions/4476810/is-it-really-possible-to-call-ht…
(3)
{{velocity}}
{{html}}
{{/html}}
(4)
Request-URL:
http://refidim:8082/xwiki/rest/wikis/xwiki/spaces/PrayHour/pages/MON09/obje…
Request-Methode: PUT
Status-Code: HTTP/1.1 500 Server Error
Request-Header 21:57:55.000
X-Requested-With: XMLHttpRequest
X-Prototype-Version: 1.7.1
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:36.0) Gecko/20100101
Firefox/36.0
Referer:
http://refidim:8082/xwiki/bin/view/Main/AjaxRequestPUT
Host: refidim:8082
Content-Length: 0
Connection: keep-alive
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Accept: text/javascript, text/html, application/xml, text/xml, */*
Gesendetes Cookie
validation: "3bd2fdf8f9a05ba614cf37e91b1028b7"
username: "obD1aIklU0E_"
rememberme: "false"
password: "GvlF1PXlVNhGHYktowzcuA__"
language: de
JSESSIONID: oih8bz5oa3d5qax4v8dnfs72
Response-Header Δ30ms
XWiki-Version: 6.3
XWiki-User: XWiki.Admin
Server: Restlet-Framework/2.0.14
Date: Thu, 05 Mar 2015 20:57:55 GMT
Content-Type: text/html; charset=UTF-8
Content-Script-Type: text/javascript
--
View this message in context:
http://xwiki.475771.n2.nabble.com/Ajax-PUT-Request-to-Restlet-Framework-tp7…
Sent from the XWiki- Users mailing list archive at
Nabble.com.