Zebra API Doc

zebra.io.XRPC Class

The class is implementation of XML-RPC remote service connector.

   // create XML-RPC connector to a remote service that
   // has three remote methods
   var service = new zebra.io.XRPC("xmlrpc.com", [
       "method1", "method2", "method3"
   ]);

   // synchronously call remote method "method1"
   service.method1();

   // asynchronously call remote method "method1"
   service.method1(function(res) {
       ...
   });

Constructor

zebra.io.XRPC

(
  • url
  • methods
)

Parameters:

  • url String

    an URL of remote service

  • methods Array

    a list of methods names the remote service provides

Item Index