Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the best way to test WCF services?

Tags:

c#

.net

wcf

I've used this tool that microsoft ships with visual studio because it's quick and dirty

http://msdn.microsoft.com/en-us/library/bb552364.aspx

But it's kinda clunky and hard to work with. Are there any other useful test clients out there that you use and don't require creating a new visual studio project and compiling code?

EDIT: I'm looking more for a graphical test tool that I can use to do quick ad-hoc tests of systems in our different environments without having to write a bunch different tests.

like image 865
Nick Avatar asked Mar 06 '09 20:03

Nick


People also ask

How do I run a WCF test Client?

After you create a new WCF service project and press F5 to start the debugger, the WCF Service Host begins to host the service in your project. Then, WCF Test Client opens and displays a list of service endpoints defined in the configuration file.

Can we test WCF service using postman?

We can test this API in Postman first as shown in the screenshot below: In the example, we use Postman to verify this API. Note: You should replace the API content with your actual API content after you copy the XML.

Can we test WCF service in SoapUI?

No need to have a WCF . NET Client as of now to test and monitor HTTP traffic of WCF service calls. Open soapUI and set the following settings. Make sure the service's wsdl path is correct.

How do I run a WCF service?

To open WCF Test Client, open Developer Command Prompt for Visual Studio and execute WcfTestClient.exe. Select Add Service from the File menu. Type http://localhost:8080/hello into the address box and click OK. Make sure the service is running or else this step fails.


2 Answers

SoapUI is another web service testing tool. I strongly recommend it.

like image 112
Darin Dimitrov Avatar answered Oct 05 '22 02:10

Darin Dimitrov


You're not going to find any better tool for creating automated tests of WCF servcies than to use your favorite unit test framework and write tests. The test client, nor soapUI will create a test that can run in a Continuous Integration scenario.

like image 38
John Saunders Avatar answered Oct 05 '22 01:10

John Saunders