3 this.PROXY = new SOAPProxy(this, 0,
4 "http://ray.dsl.xmission.com:8080/soap/servlet/rpcrouter",
5 "http://soaptests.mozilla.org/isprime",
6 true); // true = friendly to untrusted applets
9 // Object to proxy methods
13 // Proxy-specific items
14 isPrime: function(number, oncompletion)
17 // The following line can be used to force a parameter type
18 // type = this.PROXY.getType("long");
19 return this.PROXY.invoke(
22 new Array(new SOAPParameter(number,"number",null,type)),
23 function(proxy, headers, parameters)
25 proxy.PROXY.result = null;
26 if (parameters != null) {
27 var parameter = parameters[0];
28 // The following line can be used to force a result type
29 parameter.schemaType = proxy.PROXY.getType("boolean");
30 proxy.PROXY.result = parameter.value;
32 if (proxy.PROXY.oncompletion != null) {
33 proxy.PROXY.oncompletion(proxy.PROXY.result);