Click here to Skip to main content
15,940,550 members
Articles / Webservice

Testing and Monitoring WCF Service using soapUI and Fiddler

Rate me:
Please Sign up or sign in to vote.
4.78/5 (7 votes)
8 Sep 2011CPOL2 min read 169.3K   19   9
Testing and Monitoring WCF Service using soapUI and Fiddler

This article is not about understanding the details of .NET WCF service, soapUI and Fiddler as all these three are quite popular things among .NET developers. And tools like soapUI and Fiddler may already be in the arsenal of many web developers and QA engineers. Those who are new to these two tools should refer to following articles:

However, we will take a look into how Fiddler can be used to Monitor SOAP Request and SOAP Response transmitting behind the soapUI.

Let’s start with a simple WCF service in place. No need to have a WCF .NET Client as of now to test and monitor HTTP traffic of WCF service calls.

  1. Open soapUI and set the following settings. Make sure the service’s wsdl path is correct.

    Loading wsdl definition

  2. After loading the definition of WSDL, service definitions will appear like shown below:

    Service requests definitions

  3. Double click on Request # node and navigate to the request window on the right.

    Submitting the request

  4. Fill the method parameters denoted by “?”.
  5. Open Fiddler and make sure it is ready to capture HTTP(S) traffic.
  6. Submit request to the specified endpoint and SOAP Response can be seen on the right pane.

    Service Request-Response in soapUI

  7. If you see the Fiddler window, there is no traffic captured. This is really frustrating if you have been testing your services using soapUI when you do not see the underlying details of the SOAP Request and SOAP Response in the wire.
  8. All you need to do following proxy settings in the soapUI File –> Preferences –> Proxy Settings window.

    soapUI Proxy Settings

  9. Re-submit web service request on soapUI.
  10. Now you see WCF Request-Response traffic in the Fiddler window Smile. You are now all in your territory to view the details of service request-response headers, body, and many more!

    SOAP Request-Response view in Fiddler

But why did we add Port No. 8888 in the proxy settings of soapUI? It is because Fiddler by default listens on port no. 8888.

Fiddler default listening port no.

If you have configured your Fiddler proxy tool to listen on some other port number, then you should use that one.

I hope you enjoyed this testing tip. No need to reiterate how blissful it is to test web services using soapUI and Fiddler if you are a web service developer/provider to remote clients.

Filed under: .Net Technologies, ASP.Net, CodeProject, Dot Net Tips, Dot Net Tools, WCF Tagged: Debugging, Fiddler, soapUI, WCF, Web Service


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Written By
Technical Lead Imfinity India Pte Ltd, Noida (Excelsoft Company)
India India

Comments and Discussions

GeneralThanks for sharing Pin
Alireza_136225-Aug-16 9:29
Alireza_136225-Aug-16 9:29 
GeneralMy vote of 5 Pin
Shmeenimal9-Apr-16 7:21
Shmeenimal9-Apr-16 7:21 
QuestionHelp Pin
Milena Barreto24-Sep-12 13:05
Milena Barreto24-Sep-12 13:05 
AnswerRe: Help Pin
Dinesh K Mandal24-Sep-12 21:31
professionalDinesh K Mandal24-Sep-12 21:31 
GeneralRe: Help Pin
Milena Barreto25-Sep-12 3:46
Milena Barreto25-Sep-12 3:46 
GeneralRe: Help Pin
Dinesh K Mandal25-Sep-12 22:55
professionalDinesh K Mandal25-Sep-12 22:55 
GeneralRe: Help Pin
Milena Barreto26-Sep-12 6:26
Milena Barreto26-Sep-12 6:26 
QuestionMy Vote of 3 Pin
Erik Araojo (Avalonia/gRPC)14-Apr-12 4:31
Erik Araojo (Avalonia/gRPC)14-Apr-12 4:31 
GeneralMy vote of 5 Pin
andrew.chudley2-Dec-11 2:53
professionalandrew.chudley2-Dec-11 2:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.