XmlRpcRequest and XmlRpcResponse USE mimic
来源:互联网 发布:夏夏的淘宝店铺 编辑:程序博客网 时间:2024/06/16 11:34
Introduction
Mimicis an open source XML-RPC client implemented in JavaScript. It wasclassified as client, because it is only able to produce requests andparse responses, so you cannot use it to parse requests and produceresponses as required for a server implementation.
Itis intended to be embedded inside web pages and enable them to accessweb services based on XML-RPC through the W3C XMLHttpRequest interface.
It is compliant with the major browsers (IE, Firefox, Opera, Safari and Chrome).
源:http://mimic-xmlrpc.sourceforge.net/
How to Use
Itis very simple to use Mimic, you only have to produce a request andthen process the response. To do it you only have to use two smallclasses XmlRpcRequest and XmlRpcResponse.
Bellow we show a very simple example of a calculator accessed from Mimic:
The code used to access this service is:
- function callCalculator() {
- var method = document.getElementById("operation").value;
- var request = new XmlRpcRequest("demos/calc.php", method);
- request.addParam(document.getElementById("n1").value);
- request.addParam(document.getElementById("n2").value);
- var response = request.send();
- alert(response.parseXML());
- }
- XmlRpcRequest and XmlRpcResponse USE mimic
- MIMIC SNMP Agent Simulator
- Use strict and warning
- Land Use and GIS
- MongoDB install and use
- Define and use ripple
- Use blocks and menus
- Mimic ‘onmouseout’ with CSS3 Transitions
- use ASM and CPP together
- Use Cases Patterns and Blueprints
- WSDL Binding style and use
- Subversive And Trac Use Guide
- Use Platform Styles and Themes
- PBRT Ubuntu Compile and use
- Compile and use shared library
- Stack----use database and link
- Install and use GSL library
- ktime_get() and do_gettimeofday() APIs use
- div 显示与隐藏
- JavaScript的内置对象和浏览器对象
- Ubuntu 9.10安装ibus拼音输入法
- 请教游戏高手一款外国游戏名称和下载地址
- 用户角色权限设计
- XmlRpcRequest and XmlRpcResponse USE mimic
- JSP内置对象详解
- 迟来的初识
- javascript事件;event对象的属性
- DataGridView导出Excel文件
- 二维混合
- Javascript的document,window对象(DOM)
- 在PowerDesigner中设计物理模型
- 绝对精辟,鲜活代码和实例讲授门面设计模式