wsHttpBinding vs netTcpBinding

Topics: General Discussion Forum
Jan 26, 2009 at 10:33 PM
Hi

I want to have as secure and stable as possible connection between my web client and WCF service. Especially the stability of the connection is important. Which is the best?

* wsHttpBinding hosted in IIS with the use of reliableSessions
or 
* netTcpBinding hosted  in Windows Service

Both web client and wcf service under our controll and is hosted in-house but used over the Internett by our clients/users. The users authenticate themself by Web Forms authentication on the web client which reside in DMZ. The web client communicates with the wcf service in per session mode. Session is required and is the reason I want the stability.

Right now I have wsHttpBinding but I have some issues with authenication and configuration that made me think on alternatives. Is netTcpBinding easier to configure and setup than e.g. wsHttpBinding?
Jan 27, 2009 at 7:58 PM

Both are good but I would choose IIS because it may provide a more robust host than a simple service.

If you have auth issues with IIS, you may take a look at this guidelines that may help you out with that scenario.

http://www.codeplex.com/WCFSecurityGuide