31 Aug 2006 13:48
On web client, XML and ONC RPC and their integration with demexp
David MENTRE <dmentre <at> linux-france.org>
2006-08-31 11:48:07 GMT
2006-08-31 11:48:07 GMT
Hello, To put this message into context, Augustin has recently proposed[1] to make a web interface for demexp using Drupal. One of the main issue of this proposal and that there is no implementation of ONC RPC (used to communicate with demexp server) in PHP (and hence for Drupal). However, Drupal has a XML RPC module[2]. I started to look at this issue[3] and found no easy way to solve it. One approach would be to compile the XDR description of demexp protocol into C using rpcgen(3) and then make a PHP binding to it. While apparently not too difficult, this approach is not very versatile: if the protocol is modified, one needs to modify manually the PHP/C binding. A second approach would be to implement an RPC generator and its supporting XDR encoding/decoding library for PHP. I haven't much investigated this approach but it seems to me not a very simple path. Moreover, beside demexp, I don't think a lot of people in the PHP community are eager to use ONC RPC.(Continue reading)A third approach would be to implement the XML RPC interface on the demexp side. This seems doable with current infrastructure. Gerd's has confirmed me that we could have simultaneously XML and ONC RPC inside demexp[4] and, it should be possible to use CDuce to implement XML parsing and generation[5]. However, I'm not entirely satisfied with this approach: it would necessitate to have two interfaces at the demexp server, XML RPC and ONC RPC, thus two interfaces to debug, test and
A third approach would be to implement the XML RPC interface on the
demexp side. This seems doable with current infrastructure. Gerd's has
confirmed me that we could have simultaneously XML and ONC RPC inside
demexp[4] and, it should be possible to use CDuce to implement XML
parsing and generation[5]. However, I'm not entirely satisfied with this
approach: it would necessitate to have two interfaces at the demexp
server, XML RPC and ONC RPC, thus two interfaces to debug, test and
RSS Feed