Skip to search.
rest-discuss · REST Discussion Mailing List

Group Information

  • Members: 1401
  • Category: Protocols
  • Founded: Nov 13, 2001
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

  Messages Help
Advanced
MIME properties instead +   Message List  
Reply Message #11734 of 18829 |
I had a need in one of my projects to query for different XML schema
documents from my RESTful service. Looking around the internet it
seemed that the de facto way of doing this would be:

application/vnd.myformat+xml

Or, just register "myformat" with IANA and have:

application/myformat+xml

One huge downside of this though is that my browser does not know how to
render application/myformat+xml. So, my question to this list is, why
aren't MIME properties used to identify XML schema? For example:

application/xml; schema=http://www.w3.org/2005/Atom

I tried this approach with Firefox and Safari and both browser ignore
the attribute and render the document as XML.

Would there be any reason NOT to use and promote this approach other
than it goes against current de facto convention? I blogged about this
a few months ago and have yet to receive a logical reason why this
approach isn't superior:

http://bill.burkecentral.com/2008/03/05/restful-xml-content-negotitation/

Thanks,

Bill


--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com



Thu Dec 11, 2008 2:49 pm

patriot1burke
Offline Offline
Send Email Send Email

Message #11734 of 18829 |
Expand Messages Author Sort by Date

I had a need in one of my projects to query for different XML schema documents from my RESTful service. Looking around the internet it seemed that the de...
Bill Burke
patriot1burke Offline Send Email
Dec 11, 2008
3:00 pm

... Could you elaborate on your tests? Subbu ... http://subbu.org...
Subbu Allamaraju
sallamar Offline Send Email
Dec 11, 2008
3:40 pm

There was a whole discussion and even a very detailed proposal for something like this a while back. Here's what I wrote back then [1]. Interestingly, after a...
Stefan Tilkov
stilkov Offline Send Email
Dec 11, 2008
4:18 pm

Apologies for following up on my own post, but Steve Vinoski had a good summary of the (negative) responses back then: ...
Stefan Tilkov
stilkov Offline Send Email
Dec 11, 2008
4:37 pm

Any reasons why is having a zillion types is a bad thing? Media-"type" is a type, and generic types don't convey much to clients. Subbu ... http://subbu.org...
Subbu Allamaraju
sallamar Offline Send Email
Dec 11, 2008
4:42 pm

... The same could be said for interfaces – why not simply have millions of them? Clearly, a generic interface has benefits. Following this line of...
Stefan Tilkov
stilkov Offline Send Email
Dec 11, 2008
4:52 pm

Hmm. Let's say, if we fix the interface to be uniform, and fix all media types to be, say a dozen, where would that take us? By the way, the point I am making...
Subbu Allamaraju
sallamar Offline Send Email
Dec 11, 2008
4:59 pm

... No, I meant that having lots of media types is a bad idea for interoperability for the same reason having lots of interfaces is a bad idea. But to Bill's...
Mark Baker
gonga_thrash Offline Send Email
Dec 11, 2008
6:03 pm

... Yes, interop is the key. But the downside is that most people interpret this argument to mean that they should limit themselves to "standard" media types...
Subbu Allamaraju
sallamar Offline Send Email
Dec 11, 2008
6:24 pm

... Registration of vnd.redhat.blahblah will not allow Firefox and Safari to render my documents though :) I see your point of why namespaces don't replace...
Bill Burke
patriot1burke Offline Send Email
Dec 11, 2008
7:25 pm

How about supporting agent-driven negotiation for browser-scenarios? Subbu ... http://subbu.org...
Subbu Allamaraju
sallamar Offline Send Email
Dec 11, 2008
7:31 pm

Not sure what you mean. You mean Peter's suggestion? Of looking at the User-Agent header? Not very feasible to add to user code (and ugly to add to user...
Bill Burke
patriot1burke Offline Send Email
Dec 11, 2008
8:08 pm

When you find that the client does not support application/ vnd.redhat.blahblah+xml, redirect the client to some blahblahdocument.xml. This may work since when...
Subbu Allamaraju
sallamar Offline Send Email
Dec 11, 2008
8:15 pm

Browser rendering issues usually happen when the server doesn't properly handle content-neg; i.e. resources are defined for limited (only one) representation...
mike amundsen
mamund Offline Send Email
Dec 11, 2008
8:19 pm

... Of course, they only know a handful of formats. If you're dealing with a browser, don't send an unknown format, transform it into HTML. Mark....
Mark Baker
gonga_thrash Offline Send Email
Dec 11, 2008
8:10 pm

... Doesn't really help to transform things to HTML when you're trying to debug an XML problem. Customer Support: Hey Bill, this XML message won't post to the...
Bill Burke
patriot1burke Offline Send Email
Dec 11, 2008
8:20 pm

Bill: i provide a simple 'viewer' in HTML/Ajax that makes it possible to see all the various (text-based) messages no matter the media-type. very simple to...
mike amundsen
mamund Offline Send Email
Dec 11, 2008
8:25 pm

... Based on the long discussion on this topic i think it is clear that your only real choice is to learn to love `curl`, `xml_pp` and `less`. ... That...
Peter Williams
peter_e_will... Offline Send Email
Dec 11, 2008
11:01 pm

On the Windows platform WFetch and Fiddler are (free) 'graphical' alternatives to curl. mca http://amundsen.com/blog/...
mike amundsen
mamund Offline Send Email
Dec 11, 2008
11:18 pm

... Or use CLI curl. I'm losing track of the number of ways to run GNU/FOSS on Windows (used to just be cygwin), I only came across uwin today: ...
Eric J. Bowman
eric@... Send Email
Dec 12, 2008
5:06 am

Eric: Yep, lots of ways to go. I've even run WFetch.exe via WINE over Ubuntu (no SSL, but it covers most cases). The point, I think, is that the Web browser is...
mike amundsen
mamund Offline Send Email
Dec 12, 2008
5:14 am

... Yup, I got that point, I just like mentioning that every GUI or CLI tool discussed regarding REST development is available on Windows... ...
Eric J. Bowman
eric@... Send Email
Dec 12, 2008
8:06 am

... Turns out it was written by Dr. David Korn: " The best advice I can give is to not use Windows unless you have to, or if you have to, use a UNIX operating...
Eric J. Bowman
eric@... Send Email
Dec 17, 2008
8:45 pm

... Sigh... ... -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com...
Bill Burke
patriot1burke Offline Send Email
Dec 11, 2008
11:46 pm

Hi Stefan, Stefan Tilkov wrote: ... I use the HTTP Link: header [1] to do this kind of thing - defining a link between the representation returned and its XML...
John Kemp
frumiousj Offline Send Email
Dec 11, 2008
4:42 pm

Off-the-cuff, I like Bill's proposal better, b/c 1) we already know it's XML, so anything that knows how to render XML is happy 2) we already have an XML...
Steve Bjorg
steve_bjorg Offline Send Email
Dec 11, 2008
4:45 pm

(1) The proposal was not XML specific. (2) Absolutely wrong :). Every application defines their own namespaces .. it may be possible use a uniform interface to...
Sanjiva Weerawarana
sanjivaw Offline Send Email
Dec 12, 2008
9:48 am

... and that is is usually needed at dev-time and not run-time. Subbu ... http://subbu.org...
Subbu Allamaraju
sallamar Offline Send Email
Dec 12, 2008
3:15 pm

... Not sure I agree with this statement. Can you elaborate? -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com...
Bill Burke
patriot1burke Offline Send Email
Dec 12, 2008
5:16 pm
First  | < Prev  |  Last 
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help