else objects.setSize(0);
String content = send(args, http);
- if (Log.verbose) Log.log(this, "send: " + content);
+ if (Log.verbose) {
+ String s;
+ BufferedReader br2 = new BufferedReader(new StringReader(content));
+ while ((s = br2.readLine()) != null) Log.log(this, "send: " + s);
+ }
HTTP.HTTPInputStream is = http.POST("text/xml", content);
try {
if (ret == -1) return ret;
String s;
BufferedReader br2 = new BufferedReader(new StringReader(new String(c, off, ret)));
- while ((s = br2.readLine()) != null) if (Log.on) Log.log(this, "recv: " + s);
+ while ((s = br2.readLine()) != null) Log.log(this, "recv: " + s);
return ret;
}
});
protected String send(Object[] args, HTTP http) throws JavaScriptException, IOException {
StringBuffer content = new StringBuffer();
+ content.append("\r\n");
content.append("<?xml version=\"1.0\"?>\n");
content.append(" <methodCall>\n");
content.append(" <methodName>");