dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: queation about XMLRPC in Javascript

  1. #1
    Join Date
    Sep 2011
    Posts
    1

    queation about XMLRPC in Javascript

    Hi Community!

    Maybe it is not right place to ask this question, but still decided to ask.
    I want to make XMLRPC client and server. Client sends two numbers and server returns the sum of them to the client. Server side uses c-XMLRPC (c-code) and client uses mimic.js library to create XMLRPC. I know Javascript XMLRPC is used mostly for webservices.
    How does XMLRPC connection happen in JS XMLRPC?
    how can I establish XMLRPC connection between C code server and JS client?

    Thank You in advance!

  2. #2
    Join Date
    Jul 2008
    Location
    urbana, il
    Posts
    2,787
    wow, there's a blast from the past; i though xmlrpc went the way of the dinos...

    anyways, the answer to your question is ajax and lots of string building of xml. you send a POST of the built-up xml string with ajax, and then the server's response xml gets parsed for the data you want.


    compared to newer interchange techs like json and rest APIs, xmlrpc is not a very easy way to do client/server interaction in javascript. I remember the simple SOAP directory lister i coded was about 40 lines of code just to display a list of files (w/details) in a folder on the browser's screen. w/JSON, it's about 10 lines...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles