X-Git-Url: http://git.megacz.com/?p=org.ibex.net.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fnet%2FSOAP.java;h=b33bfb6e39ec49ed9e4e31b7ef8e408745948c76;hp=85670a300e8e70873e9b299b067d7638dae5dd71;hb=f025bde8f77969b6e0d1aced7a3ef333a600e64e;hpb=222248ba3f050224a55b8457a3a6e4af0020c2fe diff --git a/src/org/ibex/net/SOAP.java b/src/org/ibex/net/SOAP.java index 85670a3..b33bfb6 100644 --- a/src/org/ibex/net/SOAP.java +++ b/src/org/ibex/net/SOAP.java @@ -90,7 +90,7 @@ public class SOAP extends XMLRPC { } else if (me instanceof byte[]) { objects.removeElementAt(objects.size() - 1); - objects.addElement(new Stream.ByteArray(Base64.decode(new String(content.getBuf(), 0, content.size())), null)); + objects.addElement(new Fountain.ByteArray(Base64.decode(new String(content.getBuf(), 0, content.size())), null)); content.reset(); } else if (me instanceof Integer) { @@ -179,10 +179,10 @@ public class SOAP extends XMLRPC { sb.append(((Boolean)o).booleanValue() ? "true" : "false"); sb.append("\r\n"); - } else if (o instanceof Stream) { + } else if (o instanceof Fountain) { try { sb.append(" <" + name + " xsi:type=\"SOAP-ENC:base64\">\r\n"); - InputStream is = ((Stream)o).getInputStream(); + InputStream is = ((Fountain)o).getInputStream(); byte[] buf = new byte[54]; while(true) { int numread = is.read(buf, 0, 54); @@ -199,9 +199,9 @@ public class SOAP extends XMLRPC { sb.append(((Boolean)o).booleanValue() ? "1" : "0"); sb.append("\r\n"); } catch (IOException e) { - if (Log.on) Log.info(this, "caught IOException while attempting to send a ByteStream via SOAP"); + if (Log.on) Log.info(this, "caught IOException while attempting to send a Fountain via SOAP"); if (Log.on) Log.info(this, e); - throw new JSExn("caught IOException while attempting to send a ByteStream via SOAP"); + throw new JSExn("caught IOException while attempting to send a Fountain via SOAP"); } } else if (o instanceof String) {