Monday, November 08, 2010 at 12:07 AM.
system.verbs.builtins.xml.aggregator.rpcTesting.testSubs
local (username = aggregatorData.prefs.security.username);
local (password = string (aggregatorData.prefs.security.password));
local (url = "http://static.userland.com/gems/backend/rssTwoExample2.xml");
local (endpoint = "xmlrpc://127.0.0.1:5337/RPC2" );
bundle { //aggregator.getSubs
scratchpad.subs = [endpoint].aggregator.getSubs (username, password);
edit (@scratchpad.subs)};
bundle { //aggregator.subscribe
scratchpad.newSubInfo = [endpoint].aggregator.subscribe (url, username, password);
edit (@scratchpad.newSubInfo)};
bundle { //aggregator.getSubInfo
scratchpad.subInfo = [endpoint].aggregator.getSubInfo (url, username, password);
edit (@scratchpad.subInfo)};
bundle { //aggregator.unsubscribe
scratchpad.returnValue = [endpoint].aggregator.unsubscribe (url, username, password);
edit (@scratchpad.returnValue)};
bundle { //aggregator.getLastScanInfo
scratchpad.lastScanInfo = [endpoint].aggregator.getLastScanInfo (username, password);
edit (@scratchpad.lastScanInfo)}
This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.