XML-RPC

// see http://www.xml-rpc.net/faq/xmlrpcnetfaq.html

using CookComputing.XmlRpc;

[XmlRpcUrl("http://XXX.imn.htwk-leipzig.de:9876")] 
interface IAdd
{ 
  [XmlRpcMethod("Numbers.add")] 
  int Add(int x, int y);
} 

class _ {
    public static void Main () {
	IAdd proxy = (IAdd)XmlRpcProxyGen.Create(typeof(IAdd));
	int result = proxy.Add(2, 3);
	System.Console.WriteLine (result);
    }
}
Compilation etwa so:
mcs -r:/home/waldmann/mono-1.1.15/lib/mono/gac/CookComputing.XmlRpc/0.9.2.1__a7d6e17aa302004d/CookComputing.XmlRpc.dll Simple_Client.cs



Johannes Waldmann 2007-06-21