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

RE: MS thinks HTTP Needs Replacing???


signs stylus needs replacing
> From: Thomas B. Passin [mailto:tpassin@c...]

<snip/>

> There's another way to approach it that is more consistent 
> with the HTTP
> RFC.  When you  POST data to a server at a URI, one of the 
> possible intended
> outcomes is that the server should create a new resource that is
> "subordinate" to the originally addressed one.  If so, it 
> should return a
> CREATED response with a URI for the new resource.
> 
> For example, if you requested a transaction at
> 
> http://www.illustations.com/bookstore/the_latest_book
> 
> you might be informed to look for your results (tracking 
> notification for
> the shipment, perhaps) at
> 
> http://www.illustations.com/bookstore/the_latest_book/shipment
> /some_tracking
> _number

> (This certainly should count as a "subsidiary" resource)

> If the server cannot return a response immediately, then, it fits the
> concept of operations for the server to return a CREATED message that says
> when it expects the new resource to contain the data, and what url it will
> be at.  The requestor can then GET that resource whenever it desires,
> checking to see if it has been completed yet.

Yes, I've heard this mentioned before. This is an intriguing approach. I
also saw someone mention in a post (was it on the rest-discuss list? I can't
find it now) that it is reasonable to return a 202 Accepted status. Is this
compatible with the approach of returning a location for a created resource,
or do I need to return a CREATED status for that? (I was thinking about this
just last night, and I'm fuzzy on this.)

However, there are still instances where you just need a synchronous reply.
One scenario I can think of is authenticating a user against a remote
service. We do single sign-on with remote portals routinely. In such
deployments, when the user tries to access our software and they have not
been authenticated, we will authenticate them using the remote service
before allowing entry. We obviously can't do this in an async fashion.
(Currently, we typically do this with browser redirects and unique URIs with
encrypted tokens. But there is a need to do this sometimes with XML
messaging, as well.)

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.