Home > ASP.Net > Testing WCF Service using Test Client

Testing WCF Service using Test Client


Hi all,

Try this example for Testing WCF service using Test Client

1- Create a WCF service.

2- Now it’s time to test our service. Instead of creating a console application or a client application to test the service we will use the predefined tool wcftestclient.exe.

3- Open Visual Studio command prompt and type wcftestclient then Enter.

wcftestclient1

4- After pressing Enter, we get a GUI application of the WCF Test Client

wcftestclient2

5- Select File->Add Service and type the service endpoint url as address and click ok.

wcftestclient3

We get as below

wcftestclient4

6- Double click on the Method that you want to test

wcftestclient5

7- Now pass the value and click on Invoke button and you will get the response below.

wcftestclient6

Hope this helps

Good Luck.

Advertisements
Categories: ASP.Net
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: