X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2FSOAP.java;h=2c4044fabcaa555fff523d0c4e18429289415377;hb=cd2eada59986cb181dccd7716fc1c21a0cf4d379;hp=5e6d46302f8395537fb0b59a12473385275379ff;hpb=2ccad2219888c9942f62ae8b4d4207f655690948;p=org.ibex.core.git diff --git a/src/org/xwt/SOAP.java b/src/org/xwt/SOAP.java index 5e6d463..2c4044f 100644 --- a/src/org/xwt/SOAP.java +++ b/src/org/xwt/SOAP.java @@ -1,4 +1,3 @@ -// FIXME // Copyright 2003 Adam Megacz, see the COPYING file for licensing [GPL] package org.xwt; @@ -20,17 +19,17 @@ import org.bouncycastle.util.encoders.Base64; *
o
to sb
&/
+ /** Appends the SOAP representation of o
to sb
*/
void appendObject(String name, Object o, StringBuffer sb) throws JSExn {
if (o instanceof Number) {
if ((double)((Number)o).intValue() == ((Number)o).doubleValue()) {
@@ -202,8 +201,8 @@ class SOAP /*extends XMLRPC*/ {
sb.append(((Boolean)o).booleanValue() ? "1" : "0");
sb.append("" + name + ">\r\n");
} 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);
+ if (Log.on) Log.info(this, "caught IOException while attempting to send a ByteStream via SOAP");
+ if (Log.on) Log.info(this, e);
throw new JSExn("caught IOException while attempting to send a ByteStream via SOAP");
}
@@ -245,7 +244,7 @@ class SOAP /*extends XMLRPC*/ {
}
}
- protected String send(JSArray args, HTTP http) throws JSExn, IOException {
+ protected String buildRequest(JSArray args) throws JSExn, IOException {
// build up the request
StringBuffer content = new StringBuffer();
content.append("SOAPAction: " + action + "\r\n\r\n");
@@ -257,7 +256,7 @@ class SOAP /*extends XMLRPC*/ {
content.append(" xmlns:xsi=\"http://www.w3.org/1999/XMLSchema-instance\">\r\n");
content.append("