Hello, I've done some more tracing, and the bug was actually in the PHP client library. I'm using the IXRLibrary, basically there was a one line change, which I have emailed to the author. Basically, there is an fgets that reads in 4096 characters at a time, but then for some reason a newline is appended. By simply removing the linefeed append, everything cleaned itself up.
Cheers, Sam. On Mon, 14 Mar 2005 08:30:18 +1300, Rachel Primrose <[EMAIL PROTECTED]> wrote: > > > We've experienced this same problem. We are using the Apache XML-RPC lib as > the server, and a php one as the client. We ended up stripping out > linefeeds on the client end. It is possible to fix in the Apache code, > however it would require a recompile and each future version would need to > be patched in a similar way. > > Since php is a little easier to modify, and provides simpler functionality, > it was easier to do it on that end. > > -Rachel Primrose > > > -----Original Message----- > From: Sam Silvester [mailto:[EMAIL PROTECTED] > Sent: Friday, 11 March 2005 18:11 > To: [email protected] > Subject: XML-RPC method response has spurious LF every 4096 characters > > > Hi All, > > I'm having a problem with the Apache XML-RPC running as a server. I > have a method that returns a reasonably large Vector, and when this is > sent to the client as a methodResponse, linefeeds are inserted once > the line reaches 4096 characters! Unluckily for me, that happens right > in the middle of an endElement tag, such that instead of </value> > being output, it is broken over two lines such that </ is at the end > of the first line, and value> is at the beginning of the second. > Needless to say, the client chokes on this. > > I'm not sure what other information may be needed to work out what is > going on here, please let me know if you want me to post some example > output (I won't at this point to keep the size of this message down) - > for the moment I'll present a trimmed example: > > Method Call: > > <?xml version="1.0"?> > <methodCall> > <methodName>test.listConfigs</methodName> > <params> > </params></methodCall> > > Method Response: > > <?xml version="1.0" encoding="ISO-8859-1"?>...lots of data trimmed > here...<value>Type=1</ > value><value>Name=Element5</value> > > > (See what I mean about the split? That happens consistently at 4096 > characters!) > > Thanks in advance, > > Sam
