From: Eduard D. <ed...@fr...> - 2021-03-16 09:23:52
|
Thanks Adam, you bought me some time :-) -----Original Message-----From: Adam Retter <ad...@ex...>To: Eduard Drenth <ed...@fr...>Cc: exi...@li... <Exi...@li...>Subj ect: Re: [Exist-open] exist interfacesDate: Tue, 16 Mar 2021 07:50:42 +0100 Hi Eduard, I would suggest to stick with plain HTTP and build an API for yourself in XQuery that returns what you need (JSON if you like). To do this you have a number of choices but I think RESTXQ is a great fit here. For FusionStudio we built our API in XQuery using RestXQ and all communication back and forth is JSON (apart from retrieving/storing non-XML docs). If you want to see how we did it, the source code and links to the swagger API docs are available here - https://www.github.com/evolvedbinary/fusio-studio-api On Mon, 15 Mar 2021, 11:17 Eduard Drenth, <ed...@fr...> wrote: > > > > Dear all, > > > > For our language resources I am developing (ejb/cdi) services behind > a graphql interface. Data comes from several backends. Some of them > already have ejb/cdi/jpa code and setup which I can easily reuse. > > > > For exist I wonder how to connect to remote exist instances in an > efficient, future proof way. I already have working queries that > output json and can be called over https. > > > > As far as I can see, these are my options: > > > > 1) https calls => overhead, but already there, optimized and perhaps > fast enough > 2) http://exist-db.org/exist/apps/doc/devguide_xmlrpc => expensive? > old technology? maintained? json results supported? > 3) http://exist-db.org/exist/apps/doc/devguide_xmldb.xml => promoted > as the preferred way, sits on top of xmlrpc? json results supported? > 4) http://xqj.net/: feel like the way to go for me, but is it alive? > > > > Perhaps xmldb api is my best option, any thoughts or experiences on > this subject would be welcome... > > > > Regards, Eduard > > > > > > > > -- > > Eduard Drenth, Software Architekt > > > > ed...@fr... > > > > Doelestrjitte 8 > 8911 DX Ljouwert > +31 58 234 30 47 > +31 62 094 34 28 (privé) > > > > skype: eduarddrenth > https://github.com/eduarddrenth > frisian.eu > gpg: https://pgp.surfnet.nl/pks/lookup?search=eduarddrenth > > > > > > > > Op freed bin ik thús/wurkje ik minder > > > > > > > > > > > > > _______________________________________________ > > Exist-open mailing list > > Exi...@li... > > https://lists.sourceforge.net/lists/listinfo/exist-open > -- Eduard Drenth, Software Architekt ed...@fr... Doelestrjitte 8 8911 DX Ljouwert +31 58 234 30 47 +31 62 094 34 28 (privé) skype: eduarddrenth https://github.com/eduarddrenth frisian.eu gpg: https://pgp.surfnet.nl/pks/lookup?search=eduarddrenth Op freed bin ik thús/wurkje ik minder |