[ZODB-Dev] ZODB - XMLRPC - Content is not allowed in prolog.

Jola jolibal at gmail.com
Tue Mar 13 06:47:50 EDT 2007


Hello,

I would like to connect to ZODB using XmlRPC. I used a port number 9675. Is
the port 9675 correct ?
I run ZODB with such parameters : runzeo.py -a 9675 -f "C:\tmp\Data.fs"

How ZODB should be configured for XMLRpc ?
but I have such error :

[Fatal Error] :1:1: Content is not allowed in prolog.
org.apache.xmlrpc.client.XmlRpcClientException: Failed to parse servers
response: Content is not allowed in prolog.
        at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(
XmlRpcStreamTransport.java:174)
        at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(
XmlRpcStreamTransport.java:149)
        at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(
XmlRpcHttpTransport.java:95)
        at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(
XmlRpcSunHttpTransport.java:39)
        at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(
XmlRpcClientWorker.java:53)
        at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:166)

        at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:157)

        at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:146)

        at rpcapplication.RpcMain.main(RpcMain.java:64)
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.client.XmlRpcStreamTransport.readResponse(
XmlRpcStreamTransport.java:172)
        at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(
XmlRpcStreamTransport.java:149)
        at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(
XmlRpcHttpTransport.java:95)
        at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(
XmlRpcSunHttpTransport.java:39)
        at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(
XmlRpcClientWorker.java:53)
        at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:166)

        at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:157)

        at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:146)

        at rpcapplication.RpcMain.main(RpcMain.java:64)


My xml looks like :

<?xml version="1.0"?>
<methodCall>
  <methodName>root.get</methodName>
  <params>
    <param>
      <value>conferences</value>
    </param>
  </params>
</methodCall>

Could you give me some suggestion how should I solve it ?

And the second question : Is it some way how to see what is in ZODB - some
administration tool , which shows all objects and methods ?

Thanks for reply.
Jola



-- 
Pozdrawiam Jola
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zodb-dev/attachments/20070313/7abcc2a8/attachment.htm


More information about the ZODB-Dev mailing list