On 10/3/06, HUYLEBROECK Jeremy RD-ILAB-SSF <[EMAIL PROTECTED]> wrote:
Is there any example of implementation of an Echo with the xmlrpc-3.0 lib? I'd like to return the complete HTTP payload as a String in the methodResponse.
No, there isn't. However, it should be easy to implement. But, before I continue: Are you sure that you need this? My impression is that you want to have a debugging possibility, which tools like tcpmon or wireshark would give you without any work. I'd recommend the following approach: Create a servlet filter, which reads the complete ServletInputStream ("payload") and stores it into a byte array. The byte array would be stored into a static ThreadLocal object. The filter would then pass a HttpServletRequestWrapper with a new ServletInputStream, which reads from the byte array. Your handler class can read the byte array, which is stored in the ThreadLocal object and return the contents. Jochen -- My wife Mary and I have been married for forty-seven years and not once have we had an argument serious enough to consider divorce; murder, yes, but divorce, never. (Jack Benny) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]