Git Product home page Git Product logo

jsxmlrpc's Introduction

JS-XMLRPC

DESCRIPTION

A javascript library for building xmlrpc and jsonrpc clients.

REQUIREMENTS

  • Any browser with support for ECMAScript 6 including XMLHttpRequest and DOMParser (*) or
  • NodeJS version v12.20.0 or v14.13.0 or later

(*) = according to caniuse.com, that includes at least: Chrome 61, Edge 16, Firefox 60, Opera 48, Safari 11, Chrome Android 108, Firefox for Android 107, Opera Mobile 72, Safari on iOS 11, Samsung Internet 8.2

INSTALLATION

Browsers

include the following in the web page, within a <script type="module> section:

import {xmlrpc_client, xmlrpcmsg, xmlrpcval} from 'https://cdn.jsdelivr.net/npm/@jsxmlrpc/[email protected]/lib/index.js';

NodeJS

Run

npm install @jsxmlrpc/jsxmlrpc

Then, in your code, add:

import {xmlrpc_client, xmlrpcmsg, xmlrpcval} from '@jsxmlrpc/jsxmlrpc';

USAGE / API DOCUMENTATION

HTML documentation can be found in the doc/ directory. The manual (xmlrpc_js.xml) is "xml file with stylesheets" format: it can be viewed perfectly with a web browser.

A couple of sample files can be found in the demo/ directory.

DEBUGGER USAGE

Start a webserver for static assets which has its document root at the root of this package, eg:

npx http-server

or

php -S localhost:8081

Then point your browser at /debugger/debugger.html, eg:

http://localhost:8081/debugger/debugger.html

NB since the debugger runs in the browser, it is not allowed by default to make http requests to 3rd party servers (servers on a different domain than the debugger). In order for 3rd party servers to accept requests coming from the debugger, they have to be set up to accept CORS pre-flight requests.

COPYRIGHT

Use of this software is subject to the terms in LICENSE.

AUTHORS

Gaetano Giunta

jsxmlrpc's People

Contributors

gggeek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

jsxmlrpc's Issues

Enhancements from the old roadmap

  • implement the function xmlrpc_decode_xml()
  • handling of charset encoding (where explicitly requested)
  • timeout in send() methods | OK only for async calls
  • async send() method
  • compression of requests
  • handling of compression, chunked encoding in parseResponseHeaders
  • Testsuite, speed tests, demo files
  • htmlentities only encodes as much as php function htmlspecialchars
  • encoding/decoding of anon js classes via an xml attribute (since it is hard to recover a class name, we could encode instead all methods code)
  • complete parsing of: new xmlrpcclient('http://james:[email protected]/uri')
  • using client credentials for https auth

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.