Update of /cvsroot/monetdb/pathfinder/runtime/xrpc/admin
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv15273/xrpc/admin
Modified Files:
Tag: xrpcdemo
xrpcwebclient.js
Log Message:
- add an extra updating field in the participant field
- add updating as an extra parameter to print_result
- fix updating check button in GUI
U xrpcwebclient.js
Index: xrpcwebclient.js
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/runtime/xrpc/admin/xrpcwebclient.js,v
retrieving revision 1.10.4.6
retrieving revision 1.10.4.7
diff -u -d -r1.10.4.6 -r1.10.4.7
--- xrpcwebclient.js 10 Jun 2008 10:04:53 -0000 1.10.4.6
+++ xrpcwebclient.js 11 Jun 2008 07:28:26 -0000 1.10.4.7
@@ -4,12 +4,13 @@
moduleurl, /* module (physical) at-hint URL. Module file must
be here! */
method, /* method name (matches function name in module) */
arity, /* arity of the method */
+ updating, /* whether the function is an updating function */
call, /* one or more XRPC_CALL() parameter specs
(concatenated strings) */
callback, /* callback function to call with the XML response */
timeout, /* timeout value, when > 0 repeatable isolation
level is presumed */
mode) /* (none | repeatable) [-iterative][-trace] */
{
- clnt.sendReceive(posturl, method,
XRPC_REQUEST(module,moduleurl,method,arity,call,timeout,mode), callback);
+ clnt.sendReceive(posturl, method,
XRPC_REQUEST(module,moduleurl,method,arity,updating,call,timeout,mode),
callback);
}
/* the main function you want to use: */
@@ -23,7 +24,7 @@
functions to construct valid XRPC soap requests
***********************************************************************/
-function XRPC_REQUEST(module, moduleurl, method, arity, body, timeout, mode)
+function XRPC_REQUEST(module, moduleurl, method, arity, updating, body,
timeout, mode)
{
return '<?xml version="1.0" encoding="utf-8"?>\n' +
'<env:Envelope ' +
@@ -37,6 +38,7 @@
'xrpc:location="' + moduleurl + '" ' +
'xrpc:method="' + method + '" ' +
'xrpc:mode="' + mode + '" ' +
+ 'xrpc:updCall="' + (updating?"true":"false") + '" ' +
'xrpc:arity="' + arity + '">' +
body
+ '</xrpc:request></env:Body></env:Envelope>';
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins