Hi all,

i have a little big Problem with the xml-rpc-Client. When i try to reach a
Zope-System, which includes a xml-rpc-Server on Phyton-Base, i cannot
receive
binary data.
It is no problem to receive a html-Document, therefore my little
Java-Programm runs well.

Part of the Java-Progi.:
........
XmlRpcClient server = new XmlRpcClient("http://localhost:8080/tom/";);
server.setBasicAuthentication("xx","xx");
// Empty Parameter list.
Vector params = new Vector();
// Server Call and Printout Result
String result = (String) server.execute("tom_htm",params);
System.out.println("Inhalt von tom_htm: " + result);
            } catch (XmlRpcException exception) {......}
........

The Program prints out the Source Code of the tom_htm-document, which is ok.
In the same Folder (/tom) is a beautiful Picture (Pic1). When i try
now to change the line:
String result = (String) server.execute("tom_htm",params);
into 
String result = (String) server.execute("pic1",params);
 --> I only get an error :
JavaClient: XML-RPC Fault #-1: org.apache.xmlrpc.XmlRpcException: Unexpected
Zope exception: cannot marshal <extension class
Acquisition.ImplicitAcquirerWrapper at 00C25140> objects

How can i receive the Picture or any other binary data ? How can i tell my
Java-Client to receive Binary-Data, or do you think it could be the Problem
of
the Server (Is there a Client-parameter where i have to tell the Server:Send
a
binary chunk) ?? 
Thank you in advance for your help,

Tom

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

Reply via email to