|
Re: Character encodings: msg#00249text.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 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? May I propose (yet another) xmldb: function xmldb:local-collection($uri as xs:string) object? which essentially just calls context.getBroker().getCollection(uri)? On Wed, 29 Sep 2004, Wolfgang Meier wrote: Hi, ------------------------------------------------------- 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: Whitespace handling in XUpdate: 00249, Wolfgang Meier |
|---|---|
| Next by Date: | eXist performance with distinct-values and nested queries: 00249, Kent Fitch |
| Previous by Thread: | Re: Character encodingsi: 00249, Wolfgang Meier |
| Next by Thread: | Re: Character encodings: 00249, Wolfgang Meier |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |