摘要: 服务器程序用socket听5010端口,接收一个RPC调用叫"Ping",你需要实现callPing()using System;using System.Collections.Generic;using System.Text;using XmlRpcLib;namespace XMLRPCServer1{ class Program { public static XmlRpcServer Server; static void Main(string[] args) { Server = new XmlRpcServer("127.0.0.1", 阅读全文
posted @ 2012-07-18 20:18 qimi 阅读(1008) 评论(0) 推荐(0) 编辑
摘要: 对Wordpress进行操作,除了通过他的Web后台外,还有一种方法就是通过XML-RPC来实现。关于XML-RPC我就不再赘述了,简单的来说就是:将包含着操作命令和操作数据的XML通过Http传输给XML-RPC Server。然后Server根据此XML分析出来的命令和数据进行操作,然后返回用户一个XML,里面包含了用户所需要数据的XML。拿Wordpress自身的wp.getUsersBlogs命令举例wp.getUsersBlogsRetrieve the blogs of the users.Parametersstring usernamestring passwordReturn 阅读全文
posted @ 2012-07-18 19:56 qimi 阅读(1112) 评论(0) 推荐(1) 编辑
摘要: doc.Load(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) +"\\"+xmlpath);System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase ; 获取当前路径Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) 获取当前路 阅读全文
posted @ 2012-07-18 19:16 qimi 阅读(1823) 评论(0) 推荐(0) 编辑