Click here to Skip to main content
12,352,573 members (63,136 online)
Click here to Skip to main content
Add your own
alternative version

Stats

87.9K views
19 bookmarked
Posted

Testing and Monitoring WCF Service using soapUI and Fiddler

, 8 Sep 2011 CPOL
Rate this:
Please Sign up or sign in to vote.
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

License

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

Share

About the Author

Dinesh K Mandal
Technical Lead Imfinity India Pte Ltd, Noida (Excelsoft Company)
India India
http://www.imfinity.com/

You may also be interested in...

Comments and Discussions

 
GeneralMy vote of 5 Pin
Junsui9-Apr-16 7:21
memberJunsui9-Apr-16 7:21 
QuestionHelp Pin
Milena Barreto24-Sep-12 13:05
memberMilena Barreto24-Sep-12 13:05 
AnswerRe: Help Pin
Dinesh K Mandal24-Sep-12 21:31
memberDinesh K Mandal24-Sep-12 21:31 
GeneralRe: Help Pin
Milena Barreto25-Sep-12 3:46
memberMilena Barreto25-Sep-12 3:46 
GeneralRe: Help Pin
Dinesh K Mandal25-Sep-12 22:55
memberDinesh K Mandal25-Sep-12 22:55 
GeneralRe: Help Pin
Milena Barreto26-Sep-12 6:26
memberMilena Barreto26-Sep-12 6:26 
QuestionMy Vote of 3 Pin
pogiman14-Apr-12 4:31
memberpogiman14-Apr-12 4:31 
GeneralMy vote of 5 Pin
andrew.chudley2-Dec-11 2:53
memberandrew.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.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160621.1 | Last Updated 8 Sep 2011
Article Copyright 2011 by Dinesh K Mandal
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid