xmlrpc
Module providing an easy to use XML-RPC implementation.A remote service can be used as if it is an object inside JavaScript.
classes
- XMLRPCMethod
A class for creating a remote method. - ServerProxy
Creates proxy objects which resemble a remote service.
exceptions
- InvalidServerResponse
Thrown if a server did not respond with response status 200 (OK)..
properties:- status The status returned by the server.
- MalformedXmlRpc
Thrown if an XML-RPC response is not well formed.
properties:- xml The xml source which caused the exception.
- Fault
Thrown if the RPC response is a Fault.
properties:- faultCode The fault code returned by the rpc call.
- faultString The fault string returned by the rpc call.
methods
- marshall(obj)
Marshalls an object to XML-RPC(converts an object into XML-RPC conforming xml)
by calling the object's _toXmlRpc function.
parameters:- obj The object to marshall.
return value:
An xml representation of the object. - unmarshall(xml)
Unmarshalls an XML document to a JavaScript object(converts xml to JavaScript object).
It parses the xml source and creates a JavaScript object.
parameters:- xml The xml document source to unmarshall.
return value:
A JavaScript object.
exended classes
- Object.prototype._toXmlRpc()
- String.prototype._toXmlRpc()
- Number.prototype._toXmlRpc()
- Boolean.prototype._toXmlRpc()
- Date.prototype._toXmlRpc()
- Array.prototype._toXmlRpc() Return the object's XML representation conforming to XML-RPC specs.