proxy classes are derived from IXmlRpcProxy and so inherit a Url property. This means that the XmlRpcUrl attribute can be omitted from the definition of the proxy class and instead the Url property is then set on an instance of the proxy class:
using System;
using CookComputing.XmlRpc;
[XmlRpcMissingMapping(MappingAction.Ignore)]
struct PingResult
{
public XmlRpcBoolean flerror;
public string message;
}
interface IWebLogs : IXmlRpcProxy
{
[XmlRpcMethod("weblogUpdates.ping")]
PingResult Ping(string weblog, string url);
}
IWebLogs proxy = (IWebLogs)XmlRpcProxyGen.Create(typeof(IWebLogs));
proxy.Url = "this is a var";
PingResult result = proxy.Ping("My Fictitious Blog", "http://www.fictitiousblog.com");
Console.WriteLine("{0} {1}", result.flerror, result.message);