[Users] How to peek inside the XML-RPC

Doron Fediuck dfediuck at redhat.com
Wed Feb 22 08:08:25 UTC 2012


On 22/02/12 09:07, Mike Kolesnik wrote:
>> Hi,
>>      Asking this on both the ovirt and vdsm mailing lists.
>>
>> What is the right way to get a debug output or dump of the XML-RPC
>> that is being sent between ovirt and vdsm, either from the ovirt side
>> and/or from the vdsm side ?
>>
>> Is there any way of dumping the xml-rpc being sent between ovirt-vdsm
> 
> You can try sniffing it using wireshark or a similar tool.
> This will probably give you the most accurate result including all headers that are sent.
> OE will not debug print the XML itself, only the parameters it's about send to VDSM.
> 
It is possible to increase the log verbosity of Apache's http client, so you'll be able
to get more information from that layer.
Alternatively, you can add the following to the jboss run.sh in the java_opts:

-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
-Dorg.apache.commons.logging.simplelog.showdatetime=true
-Dorg.apache.commons.logging.simplelog.log.org.apache.http=DEBUG
-Dorg.apache.commons.logging.simplelog.log.org.apache.http.wire=ERROR

More info on httpclient logging available here: http://hc.apache.org/httpcomponents-client-ga/logging.html

>>
>> Any pointers appreciated.
>>
>> thanx,
>> deepak
>>
-- 

/d

"Hi, my name is Any Key. Please don't hit me!"



More information about the Users mailing list