private static string Introspect(IJoomla proxy) { string[] methods = proxy.SystemListMethods(); StringBuilder b = new StringBuilder(); b.AppendLine("[XmlRpcUrl(\"http://www.joomlaexample.com/joomla15/xmlrpc/index.php\")]"); b.AppendLine("public interface IJoomla : IXmlRpcProxy"); b.AppendLine("{"); foreach (string m in methods) { try { object[] os = proxy.SystemMethodSignature(m); b.AppendLine("public void " + m); } catch { b.AppendLine("//public void " + m); } } b.AppendLine("}"); return b.ToString(); }
public JoomlaProxy() { _joomla = XmlRpcProxyGen.Create<IJoomla>(); }