
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600× Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
xmlrpc-message-umd
Advanced tools
UNMAINTAINED XMLRPC message builder written with UMD definition
UNMAINTAINED | This project is not maintained anymore (as of 2016 November 14).
xmlrpc-message-umd
is an XMLRPC message builder, written in Javascript.
This module only provides a string builder; it does not make any HTTP request by itself. Basically, it is just a small set of utils that create a valid "ready-to-be-sent" XMLRPC string, also meaning it works with any HTTP request module.
with Node.js
xmlrpc-message-umd
is available on NPM
You can install it with the following command:
npm install xmlrpc-message-umd
Browser globals and AMD
xmlrpc-message-umd
is available on Bower
To install it from Bower, just run
bower install xmlrpc-message-umd
You also can download the whole project (and build it from its source; see below).
Either use git clone
command to get it:
git clone https://github.com/t1st3/xmlrpc-message-umd.git
Or download the latest version of the whole project.
Then, get the dependencies of the project from both Bower and NPM:
npm install
bower install
To create an XML-RPC message, just add parameters to a new instance of the lib, like the following:
var a = ["chicken","duck","goose"];
var obj = new Object();
obj.x = 20;
obj.y = "cow";
obj.z = 3.14;
var date = new Date();
var msg = new XMLRPCMessage();
msg.setMethod("system.myMethod");
msg.addParameter("mississippi");
msg.addParameter(7);
msg.addParameter(false);
msg.addParameter(a);
msg.addParameter(obj);
msg.addParameter(date);
msg.xml();
msg.xml()
would then return the complete XML string.
By default, the type of the parameters is automatically detected. You can prevent this behavior and force the type of a parameter, for example:
var msg = new XMLRPCMessage();
msg.setMethod("system.myMethod");
msg.addParameter("qwerty", "base64");
As described on Apache Sofftware Foundation's XMLRPC documentation, the following types are available for XMLRPC:
i4
or int
boolean
string
double
dateTime.iso8601
base64
struct
array
Finally, you can also force types of elements within a struct
element or an array
element:
var obj = new Object();
obj.x = 20;
obj.y = {data: "cow", type: "base64"};
var msg = new XMLRPCMessage();
msg.setMethod("system.myMethod");
msg.addParameter(obj);
First, see "Installation for development" above. Do not forget to get the dependencies!
Then, you also need to install Gulp globally to build the project.
npm install -g gulp
See more at the "Getting started with Gulp" page.
Once you got the dependencies and installed Gulp globally, to get info about the package from the command line, just run:
gulp info
You are now ready to build!
The source is located in the "src" folder; the built target is located in the "dist" folder.
To build, just run:
gulp build
Tests
To test, you can use either the npm test
command or the gulp test
command:
npm test
or
gulp test
Serve and livereload
You can also use the serve
task to load the html pages from ./test/
in your browser.
gulp serve
Once it has loaded the page in the browser, this task watches for any modification in the source. If changes happen in the source, the task automatically reloads the page in the browser (livereload).
This piece of code is triple-licensed: MIT / BSD / GPL licenses
FAQs
UNMAINTAINED XMLRPC message builder written with UMD definition
The npm package xmlrpc-message-umd receives a total of 1 weekly downloads. As such, xmlrpc-message-umd popularity was classified as not popular.
We found that xmlrpc-message-umd demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.