On 1/26/07, Andrew Norman <[EMAIL PROTECTED]> wrote:
I have a situation where another entity wants to call my system (that's implemented via apache's XML RPC). The issue is that his system is manually writing and parsing the XML sent and received and is having issues formatting the send parameters correctly. Since I build my system with apache's XML RPC server implementation and test it with the client implementation, I haven't found a good way to determine a way to log or examine the source XML that's coming in with the request. The idea being that I could compare the correct schema created by my testers with the incorrect schema that his system is sending. Is there an undocumented way to log the format of incoming schema with the Server or could the XML RPC client itself log the schema it is sending on its side?
Assuming, that you are using the XmlRpcServlet: Overwrite the servlet class and the method getInputStream() so that the clients input is copied to a ByteArrayOutputStream. The byte array can be logged and a ByteArrayInputStream with the byte arrays contents can be returned. Jochen -- How fast can a year go? As fast as your childs first year. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]