[Home] | [Architecture Docs] | [XML-RPC]

XML-RPC

It was originally discussed that we would be using SOAP to do RPC. After a winter break of struggling with various aspects of .NET Remoting, Web Services, and other such nightmares, it was decided to abandon SOAP entirely for its simpler cousin, XML-RPC. To use the XML-RPC library we found, follow the code snippet below.

using Nwc.XmlRpc; //The library we're using

[XmlRpcExposed] // This must be here for the server not to expose every method
class SampleServer
{
    [XmlRpcExposed] // Make this method XML-RPC exposed
    public DateTime Ping()
    {
       return DateTime.Now;
    }

    //This function, while public to the rest of the app, will not be exposed via XML-RPC.
    public String Echo(String arg)
    {
       return arg;
    }
}