Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I test my WCF duplex service?

Tags:

wcf

I am currently developing a duplex WCF service and I wish to test the service using the WcfTestClient.exe that is provided by Visual Studio 2010. However as my WCF service is a duplex, the ending point are created as shown:

selfHost.AddServiceEndpoint(typeof(IPostingService), new WSDualHttpBinding(), "Posting");

apparently after running wcftestclient.exe and connecting to the service, it says that it is not supported for dual http bindings.

Any idea how else can I test my WCF service?

like image 616
Thomas Avatar asked Dec 22 '25 14:12

Thomas


1 Answers

Check this post which offers some alternatives to wcfclient.

I would just write a simple console application to test it, but that would require you to configure the bindings outside the wcfclient. You can use WCF Configuration Editor (from Tools menu) to assist with binding configuration.

like image 74
SliverNinja - MSFT Avatar answered Dec 24 '25 06:12

SliverNinja - MSFT