anyone know how to deal with the size limit of XML-RPC response?

1,235 views
Skip to first unread message

Dingjie Wang

unread,
Nov 5, 2012, 9:31:28 PM11/5/12
to OpenCog Hong Kong Project, opencog
Hi guys,
         I use XML-RPC sending day from server application, which load scheme file, to client application that segment the data. When the data is large, I got errors like
this:
      Client threw error: Response XML from server is not valid XML-RPC response.  Unable to find XML-RPC response in what server sent back.  XML-RPC response too large.  Our limit is 524288 characters.  We got 526454 characters
         I wonder if there is a way to configure XML-RPC to solve this problem? And if there is someone in opencog group working on replacing XML-RPC with zeromq or something else? Thanks!

Regards,
Dingjie

Joel Pitt

unread,
Nov 5, 2012, 9:36:47 PM11/5/12
to ope...@googlegroups.com, OpenCog Hong Kong Project
Search for XMLRPC_XML_SIZE_LIMIT_ID in
http://xmlrpc-c.sourceforge.net/doc/libxmlrpc.html

Google is your friend!
> --
> You received this message because you are subscribed to the Google Groups
> "opencog" group.
> To post to this group, send email to ope...@googlegroups.com.
> To unsubscribe from this group, send email to
> opencog+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/opencog?hl=en.

Dingjie Wang

unread,
Nov 5, 2012, 10:03:35 PM11/5/12
to joel...@gmail.com, ope...@googlegroups.com, OpenCog Hong Kong Project
Thanks! Friends give better result :P

Linas Vepstas

unread,
Nov 7, 2012, 1:09:36 PM11/7/12
to ope...@googlegroups.com, joel...@gmail.com, OpenCog Hong Kong Project
Why use XML-RPC ? Isn't there something better? I thought the zeromq stuff was the new thing ... 

--linas

Dingjie Wang

unread,
Nov 7, 2012, 10:32:10 PM11/7/12
to linasv...@gmail.com, ope...@googlegroups.com, joel...@gmail.com, OpenCog Hong Kong Project
Yeath, there should be something better. But I'm more familiar with XML-RPC, and data transfer problem don't play much role in my job. I don't want to spend too much time on it, what I need is just an ok solution. Besides, as ppl in this
group have talking a lot about zeromq, some of them I know have spent some time on it. If ppl have write an wapper
class for zeromq, making it  more easy to use, please let me know :)


--Dingjie

Shujing Ke

unread,
Nov 7, 2012, 11:33:03 PM11/7/12
to Dingjie Wang, linasv...@gmail.com, ope...@googlegroups.com, joel...@gmail.com, OpenCog Hong Kong Project
In fact, we have tried some places using zmq in opencog...
And the zmq is so convenient that we don't need wrap it. Just directly use it in any place you need : p

Dingjie Wang

unread,
Nov 8, 2012, 2:31:31 AM11/8/12
to Shujing Ke, linasv...@gmail.com, ope...@googlegroups.com, joel...@gmail.com, OpenCog Hong Kong Project
Yes, have found it in "../atomspace". Thanks :)
Reply all
Reply to author
Forward
0 new messages