|
Brad, In the
past I worked for an object database company (GemStone). We had both Smalltalk
and Java versions of our products. Many customers would start out trying to
access their object model over the wire in its “pure” form (i.e. as if the
remote objects were in local memory). What ended up happening 9 times out of 10
is that the access to said objects was not very efficient. Typically way more
data than needed was transmitted to the client. What was
typically done to rectify this is moving to a service based interface where the
server would publish a “coarse grained” interface to the client, and return a
small network of objects to the client by value. This requires more design work
to carve up the client server interface, but almost always is way more
performant. XML/RPC
seems to be a good way to model said coarse-grained interfaces. Yes, this is
more work than just going at your XML docs using XPATH! But I don’t think it is
reasonable to think that the latter is going to work well over the wire… Regards, -Chris. Chris Raber, Systems Engineer, AvantGo Inc. http://www.avantgo.com/ -----Original
Message----- Chris, Thanks for the
suggestion. I have been pondering something similar, but I have a couple
of issues: 1) I don't want to
recreate a query language if I don't have to. Xpath meets all
requirements -- I just need to de-couple the results from the "mother
ship" as mentioned prior. Now changing the result of the xpath query
to XML before returning it across the wire would be possible. I am
looking for a method on the Node, NodeList, or NodeIterator interfaces that
will create xml out of the contents...but am not finding any. I suppose
this will all have to be done manually? 2) I would prefer not to
propogate a parsing requirement to my client, rather move an object structure
(great thing about RMI). The NodeList or NodeIterator would be fine, just
as long as they were detached from the source -- I do not want to push more
data across the wire than need be. Is there a way to detach these?
Surely others out there have a similar requirement... BradO -----Original Message----- Instead of an XPATH interface, how about
an XML/RPC based service? The incoming request could be a XML structure
describing the query, and the result could be the XML tree that matches and
nothing more. -----Original Message----- Hello all, I asked a question not too long ago that
was up this same alley, but I have I have xml data on a server, stored as a
DOM, and I need to expose to a So...any advice on how to allow clients to
query a remote DOM, and receive Thanks in advance! BradO ----------------------- |
Title: RE: Xpath across a network
- Xpath across a network Brad O'Hearne
- RE: Xpath across a network Christopher Raber
- RE: Xpath across a network Brad O'Hearne
- RE: Xpath across a network Christopher Raber
- RE: Xpath across a network Joseph_Kesselman
