Hi

I am researching web services area area, I am interested in calling a 
library written in C, more specifically a scripting language written in 
C on another computer from a web client (sorry for sounding so naive!).

I assume the steps are something like this :


On client user enters, say:

x = y + z (return)

parse this script language into XML

<>x<>
<>=<>
<>y<>


send to server:
------------------------------------
parse XML into script

process

send to client XML of expected responses
(including possibly a widget or graphics window)

hold this state waiting for next user input (or stop)

So I nend some package (Sinatra? ) provides, obviously a method for 
passing calls in XML (or JSON).
I was wondering what the other issues are, not having done this before.


Could someone provide a rough road map to such a project. Do I need to 
do anything to the C library, recompile , etc? Do I need to look at 
additional or other packages? I realize this is a big question, but if 
you could point me somewhere else to research this subject, that would 
be great.

Thanks!

Brian