[REBOL] Re: Presentation - XML-RPC
From: jason:cunliffe:verizon at: 16-Sep-2002 19:17
Hi Bruno
Welcome to reboltopia!
> ** Access Error: Cannot connect to <mymachine>
> ** Where: exec
> ** Near: con: open to-url rejoin ["tcp://" url/host ":" url/port-id]
I just spent half an hour playing with it and I got similar error...
I started by making a simple file for myself %testrebxr.r to make sure all the
library files were loaded.
Then tried the examples in the docs at
http://earl.strain.at/space/rebXR+Users+Guide
When I ran the first simple client test, I get this XML error:
>> xmlrpc-exec http://betty.userland.com/RPC2 [ examples.getStateName 41 ]
** XML-RPC Fault: Code: 6 Message: Poorly formed XML text, didn't find a '>'
after a '<'. (At character #174.)
** Near: make error! e
>>
I could not see where this is coming from [but did not try very hard]. I assume
it is in the XML parse, though there may be xml-rpc changes at betty.userland
since rebXR was written.
Anyway, I invoked the server with the little test example in the Docs.
>> add 1 2
== 3
>> subtract 5 4
== 1
>> cgi-serve [ add subtract ]
Then opened another REBOL shell:
>> remote: make xmlrpc-client []
== http://localhost
>> remote/exec [add 1 2]
** Access Error: Cannot connect to localhost
** Where: exec
** Near: con: open to-url rejoin ["tcp://" url/host ":" url/port-id]
same as you... so then I tried again with a fixed IP, and got this:
>> remote2: make xmlrpc-client []
>> remote2/set-server: http://162.83.221.173 ;my IP address created by DHCP
server
== http://162.83.221.173
>> remote2/exec [add 1 2]
** Script Error: Cannot use path on none! value
** Where: rejoin
** Near: server/path server/target
>>
Sorry I can not help your further right now. Perhaps this a clue.
I'd like to use rebXR myself, so please keep me posted.
./Jason