WCF Test Client 是ㄧ用來測試 WCF 的工具。使用時只要透過上方的功能選單。

WCF - Test WCF service with  WCF Test Client

或是透過左側節點的滑鼠右鍵功能選單去觸發 ‘Add Service…’ 功能。

WCF - Test WCF service with  WCF Test Client

將欲測試的 WCF Service 位置加入…

WCF - Test WCF service with  WCF Test Client

WCF - Test WCF service with  WCF Test Client

加入後左側的樹會展出該 Service 的節點,下方會有該 Service 可提供叫用的功能。

WCF - Test WCF service with  WCF Test Client

在左側的樹這邊找到想要測試的功能,點擊切換。

WCF - Test WCF service with  WCF Test Client

可以看到右側這邊會有該功能的輸入參數可供設定。

輸入參數設定完後,按下 Invoke 按鈕發送 Request。

WCF - Test WCF service with  WCF Test Client

即可取得對應的 Response。

WCF - Test WCF service with  WCF Test Client

WCF - Test WCF service with  WCF Test Client