JMeters http proxy does not record xml-rpc calls correctly. An xml-rpc call is not posted in the usual name=value structure, but simply as one big chunk of xml. I have made a patch which first of all check if the postdata is xml, by using some very simple string comparison on the query string. If the postdata seems to be xml, it is parsed as xml and checked against an un-official xml-rpc xsd schema taken from ibiblio.org. If any error occurs or the xml-rpc cannot be validated against the schema, the request is recorded the usual way. This is my first patch for the jmeter project, so please bear with me.
Created attachment 19639 [details] HTTPSamplerBase supporting xml-rpc recording.
Created attachment 19640 [details] XmlRpcErrorHandler used for xsd schema checking of xml-rpc call
Created attachment 19641 [details] XML-RPC xsd schema (un-official)
Created attachment 19645 [details] HTTPSamplerBase supporting xml-rpc recording, cleaned up
Created attachment 19646 [details] XmlRpcErrorHandler used for xsd schema checking of xml-rpc call
Created attachment 19647 [details] XML-RPC xsd schema (un-official)
Created attachment 19656 [details] HTTPSamplerBase supporting xml-rpc and other not-"name=value" postdata. This version should not affect any other classes using the parseArguments method, as last patch did.
Created attachment 19657 [details] As commented by sebb, the fix should go into HttpRequestHdr.java instead of httpsamplerbase
Thanks! Now fixed in SVN. It will be in the next release and the next nightly build at: http://people.apache.org/builds/jakarta-jmeter/nightly/
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/1871