[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: What does SOAP really add?


post method soap
Hi Alaric

Alaric said:
> GETs are supposed to be idempotent; caches are welcome to cache GET
requests
> and service later requests to that resource without hitting the server
again,
> etc. In most cases, the only difference between performing one GET and
> performing two GETs should be in the server's logs!
>
> POSTs are assumed to have some effect upon the world, so that performing
two
> POSTs is not necessarily the same as performing one POST.

Didier replies:
I agree, but a cache bring other side effects like not having the latest up
to date document. If the HTTP GET includes parameters then two consecutive
HTTP GET may not have the same state too.

Alaric said:
> There's nothing stopping developers from making 'GET
> http://www.missiles.gov/launch' destroy the world, and requiring people to
do
> a POST to some URL (perhaps even the same URL!) to find out the current
> weather in Alaska, indeed.

Didier replies:
Exactly since the GET method can be overloaded by a script. So is the POST
method. Nothing prevent a weird developer to have a GET act as a POST and a
POST act as a GET. This is at least the current potential imposed by the
actual servers.

Alaric said:
> But by convention, 'fetching a[n XML] document' ought to be done with GET,
> and things involving activating behaviour (RPCs, basically, although
people
> here get a bit touchy about that word) done with POST, and things
involving
> overwriting a document with PUT, and so on.

Didier replies:
Yes the RFC specify that GET is to be used to fetch documents but do not
impose that a POST modify anything on the server. As a reminder, the RFC is
located at: http://www.w3.org/Protocols/HTTP/1.1/rfc2616.pdf. I posted an
extract below as reference.

POST:
The POST method is used to request that the origin server accept the entity
enclosed in the request as a new

subordinate of the resource identified by the Request-URI in the
Request-Line. POST is designed to allow a

uniform method to cover the following functions:

· Annotation of existing resources;

· Posting a message to a bulletin board, newsgroup, mailing list, or similar
group of articles;

· Providing a block of data, such as the result of submitting a form, to a
data-handling process;

· Extending a database through an append operation.

***The actual function performed by the POST method is determined by the
server and is usually dependent on the

Request-URI*** The posted entity is subordinate to that URI in the same way
that a file is subordinate to a directory

containing it, a news article is subordinate to a newsgroup to which it is
posted, or a record is subordinate to a

database.





PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.