Questions tagged [wcftestclient]

Windows Communication Foundation (WCF) Test Client (WcfTestClient.exe) is a GUI tool that enables users to input test parameters, submit that input to the service, and view the response that the service sends back. It provides a seamless service testing experience when combined with WCF Service Host.

Windows Communication Foundation (WCF) Test Client (WcfTestClient.exe) is a GUI tool that enables users to input test parameters, submit that input to the service, and view the response that the service sends back. It provides a seamless service testing experience when combined with WCF Service Host.

You can find the WCF Test Client (WcfTestClient.exe) in the following location: C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\

How to use

1.Double click on the WcfTestClient.exe

2.Select File->Add Service and enter the endpoint address of the service. This will connect to the service and populate all the methods.

3.Double click a method, fill required fields, and click Invoke button.

4.Results will be displayed in the bottom panel.

YouTube Video

Use WCF Test Client to test WCF Service Application

Updating Config file

To update the configuration parameters, right click on the "Config File" on the left panel and select Edit with SvcConfigEditor.

enter image description here

References

MSDN - WCF Test Client

104 questions
7
votes
3 answers

Is there an alternative for WCF Test Client application with better Facilities?

I use wcf test client for testing my wcf services, but it has some shortages. Is there an alternative for WCF Test Client application with better Facilities?
masoud ramezani
  • 22,228
  • 29
  • 98
  • 151
6
votes
2 answers

Entering values for a Byte array in WCF Test client

I'm trying to use the WCF test client to debug a web method and the method expects 2 byte arrays as part of its input. For now, I've just been using the debugger and placing breakpoints right before the passed values get used, and setting them with…
Zack
  • 2,789
  • 33
  • 60
5
votes
2 answers

WcfTestClient, "The client was unable to retrieve service metadata ..."

I get this error when I attempt to run the wcftestclient application: "The client was unable to retrieve service metadata..." What is odd that this happens when I load the program; before the UI to choose which service to connect to is loaded. I…
Chris Meek
  • 5,720
  • 9
  • 35
  • 44
5
votes
1 answer

WcfTestClient.exe not able to handle circular reference?

I'm working on a wcf project. Some of my services return objects that contain circular references. The serialization of these objects is handled through setting IsReference to true on DataContract attribute, so everything works fine if i write code…
weidi
  • 852
  • 7
  • 20
5
votes
2 answers

WCF Test Client - Any way to save the services/settings to a file to reload easily later?

The WCF Test Client is a really powerful tool. I can avoid creating a new console app to test my services. However, what is annoying is that I can't seem to save the services/config I add to the client. If I close it and open it again it starts…
myermian
  • 31,823
  • 24
  • 123
  • 215
4
votes
1 answer

wcftestclient - can i connect to a specific endpoint?

This should be a straightforward question. I am unable to connect to a specific endpoint using WCFTestClient tool. I have a service config. like this:
Learner
  • 3,297
  • 4
  • 37
  • 62
4
votes
4 answers

WCF test client after windows 10 and svcConfigEditor

Been using the WCF Test Client for years now, testing externally hosted webservices that I consume. I have often cursed about the inabillity to save a standard confuguration with settings about the bindings, as I for some of the methods needs to…
Steen
  • 2,749
  • 2
  • 20
  • 36
4
votes
1 answer

WCF Test Client - Sort service functions by name

When I add a service reference in WCF Test Client all of the exposed service functions are listed but in no order I could figure out... Is there a way to sort the exposed service functions alphabetically? Weather in WCF Test Client or in the…
Miljenko Barbir
  • 1,193
  • 1
  • 11
  • 32
4
votes
1 answer

WCF - Cannot obtain Metadata, but works when the XML Endpoint is removed?

I'm having a problem with the WCF Test Client. I cannot connect to my WebService because it keeps hitting this error: Error: Cannot obtain Metadata from http://xxx.xxxxxxxx.xxx/DPITerminal.svc If this is a Windows (R) Communication Foundation…
GaiusSensei
  • 1,860
  • 4
  • 25
  • 44
4
votes
2 answers

WCF - Cannot obtain Metadata

It is running in an Intranet using IIS 7 and it works fine whenever I enable Anonymous Authentication in the IIS Manager. If I disable it and try to run it using wcftestclient then I get the following error, Error: Cannot obtain Metadata from…
m0dest0
  • 849
  • 4
  • 17
  • 36
3
votes
2 answers

WcfTestClient not opening when running a simple webservice program using c# instead opens a webpage - New to c# programming

I am trying to run a simple webservice for random numbers using c#. When running the program, it opens a webpage instead of running the WCF Test Client. I have a VS 2019 installed. I also see the wcftestclient.exe in the folder. Please help me if…
Sneha
  • 27
  • 3
3
votes
1 answer

WCFTestClient exception on deployed service

I use the WCFTestClient that is provided with visual studio to test my service. The thing is that the tool is working for the service that is deployed in wisual studio with my aplication. But if I try to connect to a deployed instance on another…
Radu D
  • 3,505
  • 9
  • 42
  • 69
3
votes
1 answer

This operation is not supported in the WCF client

Why I start my wcf service at localhost:53776/MyService.svc I get this error in the wcf test client. This operation is not supported in the WCF client: [ServiceContract] public interface ILSKTicketService { [OperationContract] Task…
Pascal
  • 12,265
  • 25
  • 103
  • 195
3
votes
1 answer

What determines the order of methods in WCF Test Client?

WCF Test Client doesn't seem to put methods in any logical order. However, the order is consistent. It remains the same in every environment. It's not alphabetical. It's not the order of the methods in the class. The order in WCF Test Client does…
friggle
  • 3,362
  • 3
  • 35
  • 47
3
votes
1 answer

Failed to invoke the service, WCF Test Client?

I have a WCF service. I have a problem with it. Whenever I call a method with large response data (e.g: GetUserByUsernameWithAllRelations()) from service (with WCF Test Client) the following error occurred. An error occurred while receiving the HTTP…
Mohammad Dayyan
  • 21,578
  • 41
  • 164
  • 232