X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2FXMLRPC.java;h=efcccf7532019ceb8cecec6423f2318461ad91c6;hb=8c1756ef3fd42cc2f324baf47e13a83f51045efe;hp=43654c7f2a5a6c15168015d5e86258401a7a5739;hpb=2b1b2ef9bb8b8a34efb6329c552eea4f773d9466;p=org.ibex.core.git diff --git a/src/org/xwt/XMLRPC.java b/src/org/xwt/XMLRPC.java index 43654c7..efcccf7 100644 --- a/src/org/xwt/XMLRPC.java +++ b/src/org/xwt/XMLRPC.java @@ -58,7 +58,7 @@ class XMLRPC extends JSCallable { * stack to the last null, replace it with a NativeJSArray, and * insert into it all elements above it on the stack. * - * If a <struct> tag is encountered, a JSObject is pushed + * If a <struct> tag is encountered, a JSect is pushed * onto the stack. If a <name> tag is encountered, its CDATA is * pushed onto the stack. When a </member> is encountered, the * name (second element on stack) and value (top of stack) are @@ -82,7 +82,7 @@ class XMLRPC extends JSCallable { public void startElement(XML.Element c) { content.reset(); if (c.localName.equals("fault")) fault = true; - else if (c.localName.equals("struct")) objects.setElementAt(new JSObj(), objects.size() - 1); + else if (c.localName.equals("struct")) objects.setElementAt(new JS(), objects.size() - 1); else if (c.localName.equals("array")) objects.setElementAt(null, objects.size() - 1); else if (c.localName.equals("value")) objects.addElement(""); } @@ -128,7 +128,7 @@ class XMLRPC extends JSCallable { Double.valueOf(s.substring(15, 17)).doubleValue(), (double)0 ); - nd.jsJSFunction_setTime(JSDate.internalUTC(date)); + nd.setTime(JSDate.internalUTC(date)); objects.setElementAt(nd, objects.size() - 1); } catch (Exception e) { @@ -356,6 +356,11 @@ class XMLRPC extends JSCallable { return objects.elementAt(0); } + public final Object call(Object a0, Object a1, Object a2, Object[] rest, int nargs) throws JS.Exn { + JSArray args = new JSArray(); + for(int i=0; i