Update of /cvsroot/monetdb/pathfinder/runtime/xrpc/admin
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv3277/xrpc/admin

Modified Files:
      Tag: xrpcdemo
        xrpcwebclient.js 
Log Message:
fixes for the demo



U xrpcwebclient.js
Index: xrpcwebclient.js
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/runtime/xrpc/admin/xrpcwebclient.js,v
retrieving revision 1.10.4.4
retrieving revision 1.10.4.5
diff -u -d -r1.10.4.4 -r1.10.4.5
--- xrpcwebclient.js    8 Jun 2008 10:04:06 -0000       1.10.4.4
+++ xrpcwebclient.js    10 Jun 2008 04:55:46 -0000      1.10.4.5
@@ -23,32 +23,15 @@
           functions to construct valid XRPC soap requests
  ***********************************************************************/
 
-function XRPC_REQUEST(module, moduleurl, method, arity, body, timeout, mode) {
-    
-    var h = '';
-    if (XRPCDEBUG || timeout > 0) {
-           var hostport = window.location.hostname + ":" + 
window.location.port;
-           var ms = new Date().getMilliseconds();
-           var rnd = Math.floor(Math.random() * 1000);
-           var qid = hostport + "|" + ms + "|" + rnd;
-           h = 
-           '<env:Header>' +
-           '  <wscoor:CoordinationContext 
xmlns:wscoor="http://docs.oasis-open.org/ws-tx/wscoor/2006/06"; 
env:mustUnderstand="true">' +
-           '    <wscoor:Identifier>' + qid + '</wscoor:Identifier>' +
-           '    <wscoor:Expires>' + timeout + '</wscoor:Expires>' +
-           '    
<wscoor:CoordinationType>http://docs.oasis-open.org/ws-tx/wsat/2006/06</wscoor:CoordinationType>'
 +
-               '  </wscoor:CoordinationContext>' +
-               '</env:Header>';
-       }
-
-    var r = '<?xml version="1.0" encoding="utf-8"?>\n' +
+function XRPC_REQUEST(module, moduleurl, method, arity, body, timeout, mode) 
+{
+    return '<?xml version="1.0" encoding="utf-8"?>\n' +
            '<env:Envelope ' +
            'xmlns:env="http://www.w3.org/2003/05/soap-envelope"; ' +
            'xmlns:xrpc="http://monetdb.cwi.nl/XQuery"; ' +
            'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; ' +
            'xsi:schemaLocation="http://monetdb.cwi.nl/XQuery 
http://monetdb.cwi.nl/XQuery/XRPC.xsd"; ' +
            'xmlns:xs="http://www.w3.org/2001/XMLSchema";>' +
-                  h + 
            '<env:Body>' +
                '<xrpc:request xrpc:module="' + module + '" ' +
                 'xrpc:location="' + moduleurl + '" ' +
@@ -57,7 +40,6 @@
                 'xrpc:arity="' + arity + '">' + 
            body 
            + '</xrpc:request></env:Body></env:Envelope>';
-    return r;
 }
 
 /* a body consists of one or more calls */
@@ -155,6 +137,7 @@
     try {
        this.xmlhttp.open("POST", posturl, true);
         if (XRPCDEBUG) {
+            //alert(request);
                //document.getElementById("messreq").value = request; 
                        messreqChanged(string2XML(request));
                }


-------------------------------------------------------------------------
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

Reply via email to