Your main problem is that you are using a get request, when a Token request must be done via POST. Also, the request data, must be sent in JSON format, in the body of the POST request.
Details on the JSON format, and the required request formats are all on codeplex.
I think I definatley need to put a small demo project together for people, as your post is one of a couple where people are struggling to start. I'll add it to my list, and see if I can't get something out on my blog in the near future.
Error message: 405 Method Not Allowed
Any ideas how to resolve error message '405 Method Not Allowed'?
Below is the script I am using to call the token method
Thanks
Hi Sean,
Please check the documentation for the Token service:
http://urest4umb.codeplex.com/wikipage?title=Token&referringTitle=Documentation
Your main problem is that you are using a get request, when a Token request must be done via POST. Also, the request data, must be sent in JSON format, in the body of the POST request.
Details on the JSON format, and the required request formats are all on codeplex.
Many thanks
Matt
Hi Matt
Thanks for the response - have got it working now.
Hey Sean,
Sweet.
I think I definatley need to put a small demo project together for people, as your post is one of a couple where people are struggling to start. I'll add it to my list, and see if I can't get something out on my blog in the near future.
Cheers
Matt
I am getting this message also for a POST request.
This is my request (sent using jMeter):
POST http://umbraco47.local/rest/documents?auth_username=username&auth_token=dfe24320457754b8fbf207614ee1f5abde462359
POST data:
{
"Name":"ProductName",
"DocTypeAlias":"document-alias"
}
[no cookies]
Request Headers:
Connection: keep-alive
Content-type: application/json
Accept: application/json
Content-Length: 72
Host: umbraco47.local
User-Agent: Apache-HttpClient/4.2.3 (java 1.5)
Response:
IIS 7.5 Detailed Error - 405.0 - Method Not Allowed
Server Error in Application "UMBRACO47"
Internet Information Services 7.5
is working on a reply...