SHARE
TWEET

soap_dx

seberm Sep 6th, 2011 49 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.     //var ns = "http://www.dxstudio.com/";
  5.  
  6.  
  7.     var proxyLibrary = new SOAPProxy(ns+"soap_server.php");
  8.     //var proxyLibrary = new SOAPProxy(ns+"Services/Library.asmx");
  9.  
  10.  
  11.     // Ted uz by to snad melo fungovat.
  12.     var myMethod = new SOAPMethod("number", ns, ns+"number");
  13.     //var myMethod = new SOAPMethod("GetDetailsUser", ns, ns+"GetDetailsUser");
  14.  
  15.  
  16.     var result = null;
  17.     var resp = proxyLibrary.execute(myMethod);
  18.  
  19.     if (resp != null)
  20.     {
  21.       var sp = resp.getReturnValue();
  22.       result = sp.value;
  23.       print (result);
  24.       objects.text_1.text = result;
  25.     }
  26.     else
  27.     {
  28.       print ("No result");
  29.       objects.text_1.text = "No result";
  30.     }
  31. }
RAW Paste Data
Top