SHARE
TWEET

dx-podruhe

seberm Sep 11th, 2011 36 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     function onInit() {
  2.  
  3.         var ns = "http://bio.seberm.com/";
  4.      
  5.         var proxyLibrary = new SOAPProxy(ns+"soap_server.php");
  6.      
  7.         /*
  8.             Zde si nejsem jisty, jake spravne parametry predat konstruktoru.
  9.            
  10.             Dokumentace rika toto:
  11.             -> This is created with the 'new' keyword, and takes constructor parameters of the method name, the namespace, and the fully qualified name.
  12.  
  13.             Vubec netusim, co mysli tim "fully qualified name". Zkus s tim kdyztak trosku zaexperimentovat. Napriklad takto:
  14.         */
  15.  
  16.         var myMethod = new SOAPMethod("number", ns, "number");
  17.         //var myMethod = new SOAPMethod("number", ns, ns+"number");
  18.      
  19.         var result = null;
  20.         var resp = proxyLibrary.execute(myMethod);
  21.      
  22.         if (resp != null) {
  23.  
  24.           var sp = resp.getReturnValue();
  25.           result = sp.value;
  26.           print (result);
  27.           objects.text_1.text = result;
  28.  
  29.         } else {
  30.  
  31.           print ("No result");
  32.           objects.text_1.text = "No result";
  33.         }
  34.     }
RAW Paste Data
Top