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

Re: What does SOAP really add?


soap idempotent
On Tuesday 23 April 2002 16:27, Didier PH Martin wrote:

[GET caching]

> 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.

I know. The supposed split between 'idempotent GET' and 'mutating POST' is, 
as you correctly note, a lot less strictly enforced than it should be :-)

[GET and POST are just conventions, people are free to abuse them]

> 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.

Yeah. Bloody humans.

> 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.

Quite, quite. Sometimes, sadly, you do have to POST to perform an idempotent 
data extraction operation... but it *shouldn't* be so :-)

Going back to the original point about providing POST from XSLT; *not* 
providing it encourages people to stick to GET for idempotent access (to make 
it available from XSLT), and discourages people from trying to perform side 
effecting operations from XSLT (which is very, very, far from suited to such 
tasks).

I know what you're saying - there are idempotent operations out there that 
can only be performed by POST and it would be nice to be able to access them 
from XSLT - BUT I think this practice should be discouraged, not encouraged! 
One of the best pieces of information you can pass to a lower layer in a 
network is whether the communication action you are performing is idempotent. 
If it's idempotent, then removing the requirement to avoid duplicating 
communications in the network can simplify it a lot, and only idempotent 
operations may be cached without breaking semantics!

ABS

-- 
                               Alaric B. Snell
 http://www.alaric-snell.com/  http://RFC.net/  http://www.warhead.org.uk/
   Any sufficiently advanced technology can be emulated in software  

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.