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

Re: XML-RPC: How to make this work anyone?

Author:James Spahr
Posted:6/8/1999; 10:07:44 PM
Topic:XML-RPC: How to make this work anyone?
Msg #:7135 (In response to 7131)
Prev/Next:7134 / 7136

Your second point interests me tho'. Why wouldn't I put an XML-RPC call in a web page? If that call returns something to the browser that it can render am I not using XML-RPC as a kind of "high(er) level URI for a cgi script"? This then is a kind of distributed object system no?

XML-RPC is a way for your machine to to get the result of a script on another machine. So yes, you could have some kind of server side logic (XSSI perhaps), call an XML-RPC client (like the perl client) to fetch the result of an XML-RPC call.

The catch is - xml doesn't contain html tagged text bery nicely here. So you'd be better of having you XML-RPC call return a value (or list of values), and using your server side script to generate the html.

Its better for many reasons that way.

So the short answer is - no you don't want to just include the result from an XML-RPC call into your webpage. You want to use the data returned from this XML-RPC session to gernerate html for your webpage.

This is all assuming you want the browser to wait for you to establish another http connection, so you can build your page, before you send your page.

I hope I made sense.


There are responses to this message:


This page was archived on 6/13/2001; 4:50:40 PM.

© Copyright 1998-2001 UserLand Software, Inc.