Hello everybody,

I've uploaded a few scripts that adds some XMLRPC functionality to REBOL and an 
extended XML parsing function to my (brand new!) REBOL section at 
http://www.obscure.dk/rebol/

It's very much beta, and quite untested (and no server-side functionality yet), but 
anyways, here's a demo of what it currently can do:

REBOL/Core 2.4.36.1.1 6-Sep-2000
Copyright 2000 REBOL Technologies.  All rights reserved.
## do %xml-utils.r
## do %xml-rpc.r
## test-host: make xml-rpc/host! [
[    host: http://betty.userland.com/RPC2
[    ]
## test-host/add-method 'examples.getStateName [state-no [integer!]]
## test-host/exec [
[    state-no: random 40
[    print ["The name of state no." state-no "is" examples.getStateName state-no]
[    ]
The name of state no. 15 is Iowa

(I hope userland.com don't mind me testing against their demo server too much :-)

It currently handles marshalling REBOL to/from XMLRPC for the following datatypes:
   integer! <-> <i4>
   logic! <-> <boolean>
   string! <-> <string>
   decimal! <-> <double>
   date! <-> <datetime.iso8601>
   binary! <-> <base64>
   block! <-> <array>
   object! <-> <struct>
(including nested arrays and structs)


Best regards
Thomas Jensen

Reply via email to