Dear all,
I'm using XML-RPC 3.0 with Java 1.5.11.
I want to use the vendor extensions, but it doesn't work.
On the server side, I have:
XmlRpcServerConfigImpl serverConfig = (XmlRpcServerConfigImpl)
xmlRpcServer.getConfig();
serverConfig.setEnabledForExtensions(true);
and then start the WebServer object.
On the client, I have:
config.setEnabledForExtensions(true);
config.setGzipCompressing(true);
If the client sends a request to the server with this configuration, the servers
prints out the following Exception:
[Fatal Error] :1:1: Content is not allowed in prolog.
Aug 2, 2007 2:42:13 PM org.apache.xmlrpc.server.XmlRpcStreamServer execute
SEVERE: execute: Error while performing request
org.apache.xmlrpc.XmlRpcException: Failed to parse XML-RPC request: Content is
not allowed in prolog.
at
org.apache.xmlrpc.server.XmlRpcStreamServer.getRequest(XmlRpcStreamServer.java:66)
at
org.apache.xmlrpc.server.XmlRpcStreamServer.execute(XmlRpcStreamServer.java:181)
at org.apache.xmlrpc.webserver.Connection.run(Connection.java:175)
at
org.apache.xmlrpc.util.ThreadPool$MyThread.runTask(ThreadPool.java:71)
at org.apache.xmlrpc.util.ThreadPool$MyThread.run(ThreadPool.java:87)
Caused by:
org.xml.sax.SAXParseException: Content is not allowed in prolog.
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1269)
at
org.apache.xmlrpc.server.XmlRpcStreamServer.getRequest(XmlRpcStreamServer.java:60)
at
org.apache.xmlrpc.server.XmlRpcStreamServer.execute(XmlRpcStreamServer.java:181)
at org.apache.xmlrpc.webserver.Connection.run(Connection.java:175)
at
org.apache.xmlrpc.util.ThreadPool$MyThread.runTask(ThreadPool.java:71)
at org.apache.xmlrpc.util.ThreadPool$MyThread.run(ThreadPool.java:87)
What is wrong with my code? Does anybody have an idea?
Kind regards,
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]