Solved

"Method not allowed (405)" error on calling REST webservice from jQuery ajax.

Posted on 2014-07-20
4
3,204 Views
Last Modified: 2014-08-05
Hi,
When calling  a REST webservice  through ajax using jQuery the following error is getting
"Failed to load resource: the server responded with a status of 405 (Method Not Allowed)"
REST webservice and the calling page is under different domain.

Thanks
0
Comment
Question by:gopalv
  • 2
4 Comments
 
LVL 13

Accepted Solution

by:
duncanb7 earned 334 total points
ID: 40208323
Could you post the jquery code and the full path of the site ?

Duncan
0
 
LVL 13

Assisted Solution

by:duncanb7
duncanb7 earned 334 total points
ID: 40208324
And what system are you using to run the code ?

you send the Request to the server is running IIS  ?

Duncan
0
 
LVL 83

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 166 total points
ID: 40208326
Every REST webservice has it's own methods that have to be followed.  And every method must be supported by a program on that server.
0
 

Author Closing Comment

by:gopalv
ID: 40240883
This question is no longer relevant to us. I have awarded equal points to anyone who tried participate. Appreciate your time & effort.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
To properly understand GitHub, let’s divide it into two words ‘Git’ and ‘Hub’. Git is basically a ‘Distribution Version Control’ (DVC) and ‘Source Code Management’ (SCM) system widely used by software programmers while Hub means the efficient centre…
This video teaches users how to migrate an existing Wordpress website to a new domain.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now