}
// remove ourselves
- Object me = objects.elementAt(objects.size() - 1);
+ JS me = (JS) objects.elementAt(objects.size() - 1);
// find our parent
Object parent = objects.size() > 1 ? objects.elementAt(objects.size() - 2) : null;
} else if (parent != null && parent instanceof JS) {
objects.removeElementAt(objects.size() - 1);
try {
- ((JS)parent).put(name, me);
+ ((JS)parent).put(JS.S(name), me);
} catch (JSExn e) {
throw new Error("this should never happen");
}
}
/** Appends the SOAP representation of <code>o</code> to <code>sb</code> */
- void appendObject(String name, Object o, StringBuffer sb) throws JSExn {
+ void appendObject(String name, JS o, StringBuffer sb) throws JSExn {
+ // FIXME: Update for new api
+ /*
if (o instanceof Number) {
if ((double)((Number)o).intValue() == ((Number)o).doubleValue()) {
sb.append(" <" + name + " xsi:type=\"xsd:int\">");
}
sb.append("</" + name + ">\r\n");
- }
+ }*/
}
protected String buildRequest(JSArray args) throws JSExn, IOException {
Enumeration e = ((JS)args.elementAt(0)).keys();
while(e.hasMoreElements()) {
Object key = e.nextElement();
- appendObject((String)key, ((JS)args.elementAt(0)).get(key), content);
+ appendObject((String)key, args.elementAt(0).get((JS)key), content);
}
}
content.append(" </" + method + "></SOAP-ENV:Body></SOAP-ENV:Envelope>\r\n");