|
Re: Character encodings: msg#00256text.xml.exist
> The XML-RPC spec is kind of nuts; it was only designed for very very > simple use cases. > > Here is one way to make the REST interface "fully featured": > > 1. declare a namespace for each Service: e.g. > user="http://exist-db.org/service/UserManagementService" > 2. expose all the methods on the Service interface as XQuery functions. > > Then, the existing REST/Query interface allows all possible operations. > With the added bonus that they are also available to XQuery writers. ;-) I agree that all the administrative functions should be available from XQuery. If we implement the XQuery JSR, we need to provide access to these functions. > I have one suggestion that makes working with the "collection" based > functions easier - it would be different from xmldb:collection(), which > currently expects a URI as its first argument to pass to > DatabaseManager.getCollection(uri, user, pass). As a remote user I may not > know the database-id of the engine running the query; it is not > necessarily correct to assume that xmldb:exist:///db points to the local > database. Also, the user running the query is already authenticated, so > why should they pass authentication information again in the query? Yes, I already asked myself how to simplify the various xmldb: functions. Do we really need to have two collection functions (three if we add local-collection)? We already have fn:collection() and xmldb:collection(). Why not extend fn:collection to accept an XMLDB URI? Instead of directly creating a document set, fn:collection would return an object representing a collection. This can then be either used to call administrative functions or to create a document set for a query. Also, user and password could be specified in the URI, so no additional arguments would be required. Wolfgang ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: latest snapshot and rest protocol: 00256, Wolfgang Meier |
|---|---|
| Next by Date: | problems using 'status' page: 00256, Tony Griffiths |
| Previous by Thread: | Re: Character encodingsi: 00256, Luigi Bai |
| Next by Thread: | xmldb-library and sources: 00256, nurfuermailings |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |