public void wordpressPost()
{
blogInfo newBlogPost = default(blogInfo);
newBlogPost.title = "This is title";
newBlogPost.description = "Post goes here";
IgetCatList categories = (IgetCatList)XmlRpcProxyGen.Create(typeof(IgetCatList));
XmlRpcClientProtocol clientProtocol = (XmlRpcClientProtocol)categories;
clientProtocol.Url = "http://ccccccc.com/Editor/xmlrpc.php"; //your blog address comes here
string result = null;
result = "";
result = categories.NewPage(1,
"cccccccc", //your blog admin user id
"ccccccc", //your blog admin password
newBlogPost,
1);
}
public struct blogInfo
{
public string title;
public string description;
}
public interface IgetCatList
{
[CookComputing.XmlRpc.XmlRpcMethod("metaWeblog.newPost")]
string NewPage(int blogId, string strUserName,
string strPassword, blogInfo content, int publish);
}