What is the best Javascript XML-RPC client library?

后端 未结 7 1595
臣服心动
臣服心动 2020-12-13 07:14

What is the best Javascript XML-RPC client library in your opinion and why?

I\'am making a JQuery app and I need to communicate with my xmlrpc server with it.

<
相关标签:
7条回答
  • 2020-12-13 07:22

    The protocol is rather easy, are you sure you need a library at all? Maybe just send the XML the protocol requires?

    0 讨论(0)
  • 2020-12-13 07:25

    I've had good luck with jsolait (specifically its 'xmlrpc' module), although the project appears to be dead now.

    0 讨论(0)
  • 2020-12-13 07:25

    For XML-RPC client calls in JavaScript to a remote server, I successfully used the RedStone XML-RPC library:

    I was interfacing it with Python on the other side, I had to do a minor correction to the library though:

    //  python xml-rpc does not has a handler name
    var message = '<?xml version="1.0"?><methodCall><methodName>' + ((this.handlerName!="")?(this.handlerName + '.'):"") +  method + '</methodName>';
    
    0 讨论(0)
  • 2020-12-13 07:32

    I have tried http://www.zentus.com/js/xmlrpc.js.html myself. It has problems parsing the result in FireFox and Chrome, parsing the result in IE worked fine.

    I have not tried the others, but 'mimic' looks great (if it works).

    For my own problem, I've switched to JSON instead of XMLRPC.

    0 讨论(0)
  • 2020-12-13 07:33

    There is a Google-hosted library here: http://code.google.com/p/json-xml-rpc/. It supports both XML-RPC and JSON-RPC for JavaScript, and asynchronous as well as synchronous requests. I'm about to try out the XML-RPC for JavaScript myself with a JQuery UI and will update this based on my findings.

    0 讨论(0)
  • 2020-12-13 07:39

    Adding a library to the list. I found this one quite easy to use, although I haven't tried all of the others that are mentioned.

    • http://kuriositaet.de/javascript/jsxmlrpc.html
    • http://kuriositaet.de/javascript/xmlrpc.html
    • http://sourceforge.net/projects/jsxmlrpc/
    0 讨论(0)
提交回复
热议问题