+// FIXME
// Copyright 2003 Adam Megacz, see the COPYING file for licensing [GPL]
package org.xwt;
* <li> WSDL support
* </ul>
*/
-class SOAP extends XMLRPC {
-
- /** the desired content of the SOAPAction header */
+class SOAP /*extends XMLRPC*/ {
+ /*
+ /&* the desired content of the SOAPAction header &/
String action = null;
- /** the namespace to use */
+ /&* the namespace to use &/
String nameSpace = null;
- /** When you get a property from an SOAP, it just returns another SOAP with the property name tacked onto methodname. */
+ /&* When you get a property from an SOAP, it just returns another SOAP with the property name tacked onto methodname. &/
public Object get(String name) {
return new SOAP(url.toString(), (methodname.equals("") ? "" : methodname + ".") + name, http, action, nameSpace);
}
} else if (parent != null && parent instanceof JS) {
objects.removeElementAt(objects.size() - 1);
- ((JS)parent).put(name, me);
+ try {
+ ((JS)parent).put(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 JS.Exn {
+ /&* Appends the SOAP representation of <code>o</code> to <code>sb</code> &/
+ void appendObject(String name, Object o, StringBuffer sb) throws JSExn {
if (o instanceof Number) {
if ((double)((Number)o).intValue() == ((Number)o).doubleValue()) {
sb.append(" <" + name + " xsi:type=\"xsd:int\">");
} catch (IOException e) {
if (Log.on) Log.log(this, "caught IOException while attempting to send a ByteStream via SOAP");
if (Log.on) Log.log(this, e);
- throw new JS.Exn("caught IOException while attempting to send a ByteStream via SOAP");
+ throw new JSExn("caught IOException while attempting to send a ByteStream via SOAP");
}
} else if (o instanceof String) {
}
}
- protected String send(JSArray args, HTTP http) throws JS.Exn, IOException {
+ protected String send(JSArray args, HTTP http) throws JSExn, IOException {
// build up the request
StringBuffer content = new StringBuffer();
content.append("SOAPAction: " + action + "\r\n\r\n");
this.action = action;
this.nameSpace = nameSpace;
}
-
+*/
}