Hello Joched, Thank you replying, though unfortunately it doesn't help me much. My client is just an implementation of the ws-apache XmlRpcClient, there isn't much that I have done other than to tell my XmlRpcServlet to execute a command.
I'm going to rewrite the client, but any suggestions is welcome. On Fri, June 26, 2009 08:05, Jochen Wiedmann wrote: > On Thu, Jun 25, 2009 at 5:39 PM, Roald Hoolwerf<ro...@hoolwerf.net> > wrote: > > >> But that is exactly my problem: Why is my client sending a GET request >> instead of a POST request? > > No idea. That is definitely a nonsense and be it just for the length > restrictions of GET. > >> Iâve tried âredirectingâ the request to >> super.doPost(), but that gave the following error: >> org.apache.xmlrpc.XmlRpcException: Failed to parse XML-RPC request: >> Premature end of file. >> > > Makes no sense. > > > A POST request allows to process an unnamed object: The request body. > In a GET request, we could at best select a particular parameter to > parse it. > > In other words, you need to have the client fixed. > > > >> Iâve tried looking up the Content-length of the request, but for both >> doGet() and doPost() those are -1. They shouldnât be -1 as far as I >> know? > > For GET the -1 is perfectly fine: There is no request body, hence no > content. > > > Jochen > > > > -- > Don't trust a government that doesn't trust you. > > > Met vriendelijke groet, Roald Hoolwerf