Fiddler讓我們這些.neter感到非常欣慰, 是用C#寫出來的,它包含一個簡單卻功能強大的基於JScript .NET 事件腳本子系統,它的靈活性非常棒,可以支持眾多的http調試任務,並且能夠使用.net框架語言進行擴展。
調用webservice需要設置正確的請求頭,以下為例子,每個webserive的請求頭可能不一樣,具體根據ws提供方來確定
請求頭:
User-Agent: Fiddler SOAPAction: "http://tempuri.org/GetObList" Host: **IP Content-Length: 329 Expect: 100-continue Content-Type: text/xml; charset=utf-8
傳入值
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><GetObList xmlns="http://tempuri.org/"><time>2018-01-01T00:00:00</time></GetObList></soap:Body></soap:Envelope>

點擊Execute顯示調用結果

Fiddler調試WebApi注意事項:
1、需指定請求上下文類型,否則有些api可能會調用報錯,例如 Content-Type: application/json
2、
