当前位置: 首页 > 工具软件 > XML-RPC.NET > 使用案例 >

use the xml-rpc.net library

葛意远
2023-12-01

It's very simple to use the xml-rpc.net library, here is what you need to do:

[XmlRpcUrl("http://url_to_your_server/api.php")]
public interface ISumAndDiff : IXmlRpcProxy
{
    [XmlRpcMethod("your.remote.procedure")]
    string testMyClient(string test);
}

ISumAndDiff proxy = XmlRpcProxyGen.Create<ISumAndDiff>();

string ret = proxy.testMyClient("test");

转载于:https://www.cnblogs.com/glenblogs/p/3629361.html

 类似资料:

相关阅读

相关文章

相关问答