This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can HTTP POST be used for a RESTful service?

 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good Day,

I see a web service that uses HTTP POST with XML documents for requests and responses. The documentation of this web service refers to it as a RESTful service. Is it right? Because I was under the impression that RESTful services can only use HTTP GETs...

Regards,
Dan
 
Paul Clapham
Sheriff
Pie
Posts: 20769
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It could be right... check out this table in the Wikipedia article at http://en.wikipedia.org/wiki/Representational_state_transfer#RESTful_web_services to see what a POST method is supposed to be able to do.

I'm not saying that your web service is in fact using POST correctly, only that it's possible to use POST in a RESTful web service.
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Paul.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dan Drillich wrote:Because I was under the impression that RESTful services can only use HTTP GETs...

Nope, the full range of HTTP methods can be used. I wonder where that impression came from?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic