抓包Wcf:
使用Fiddler:http://www.spindicator.com/2012/01/using-fiddler-2-to-debug-your-wcf-net-service/
使用WireShark:http://geekswithblogs.net/EltonStoneman/archive/2009/01/29/debugging-soap-messages-with-wireshark.aspx
开启wcf服务的跟踪访问日志:
<system.diagnostics>
<sources>
<source name="System.ServiceModel"
switchValue="Information, ActivityTracing"
propagateActivity="true">
<listeners>
<add name="traceListener"
type="System.Diagnostics.XmlWriterTraceListener"
initializeData= "D:Log1.svclog" />
</listeners>
</source>
</sources>
</system.diagnostics>