how to use XMLRPC in C#

前端 未结 2 463
予麋鹿
予麋鹿 2020-12-15 21:21

I need to make XMLRPC calls from my C# application and I failed to find any help with that. When I used XMLRPC from Ruby, it\'s that simple:

server = XMLRPC:         


        
相关标签:
2条回答
  • 2020-12-15 21:59

    See if this library works for you
    https://code.google.com/p/xmlrpcnet/

    0 讨论(0)
  • 2020-12-15 22:00

    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");
    
    0 讨论(0)
提交回复
热议问题