Archive of UserLand's first discussion group, started October 5, 1998.

Sample Frontier Code

Author:Dave Winer
Posted:1/28/1999; 8:53:24 AM
Topic:Search Engine XML-RPC Interface
Msg #:2547 (In response to 2541)
Prev/Next:2546 / 2548

Sample code, running on my system, to call your RPC handler:
local (server = "asterix.cc.waikato.ac.nz", port = 80, procedure = "xxx");
local (title = "Scripting News Archive: 1/28/99");
local (url = "http://www.scriptingnews.com/1999/01/28");
local (text = base64.encode (string (dweb.home.["99"].["01"].News28), 0));
local (sitename = "Scripting News Archive");
local (siteurl = "http://www.scriptingnews.com/");
local (params = {title, url, text, sitename, siteurl});
dialog.alert (betty.rpc.client (server, port, procedure, @params))

It works, but there are problems. The XML result it returns is not properly formed. When I resubmit the page it doesn't replace the original. Not sure what to set the procedure name to.

I think we clearly need something less ad hoc running in Apache, but this is a grrrreat beginning, thank you for picking up the ball.






This page was archived on 6/13/2001; 4:47:38 PM.

© Copyright 1998-2001 UserLand Software, Inc.