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

Re: Re: What does SOAP really add?


Re: Re:  What does SOAP really add?
[Joshua Allen]

> I agree that for simple sql requests the URL is fine. But if you want
to
> use the full request capabilities wich are template based you'll have
to

SQL Server has a concept of a XML-SQL mapping that lets you put XPath as
part of the URI.  Something like:

http://www.server.com/databases/northwind.xsd/customers/orders[qty >
'5']

I am pretty sure that Oracle does this as well.

I personally think that this idea of an "XML View" is a great way to
webify a relational database and make all of the data universally
addressable.  It is also consistent with RESTful idea of "mediated view"
over a resource.  SQL data thus exposed is accessible from XSLT
document() function, and all of the other GET clients.

[Tom P]

I have two opposite things to say about this:

1)  I'm not about to encode a complex query using GET, say a 5-way join with
outer joins and other conditions, including an embedded query.  I probably
could, but I wouldn't.

2)  I shouldn't have to make this complicated query at all, because the data
service provider, should be using views that do most of the work.  The views
would require only a simple query, with a few parameters, and that query
__could__ (usually) be sent via a GET.

It's not a new idea at all to expose your data using views.  It predates the
Web, for sure.  The lesson from this is that it's a good thing to think
carefully about how your data (or other resources) is going to be exposed,
and when you do, you can often make it more palatable for simple operations.

Cheers,

Tom P


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.