Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Http 405: The specified HTTP method is not allowed for the requested resource (Request method 'POST'

 
chandeep arora
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a Rest Web service used to add items in database.. The architecture goes like this:

Request generated from UI with the items in json format to add items in DB --> Controller: converts json to xml for rest web service --> Rest web service: takes the xml and extracts data and adds into db.

Now.. the request generated from UI is a get request to controller so to pass data to controller.

UI Simulator Code:



CONTROLLER:



WEB SERVICE:



NOW i am getting the error:


 
Vijitha Kumara
Bartender
Posts: 3913
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First of all why do you need a controller to convert JSON -> XML as the backend accepts XML anyway?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic