Jinal Kothari
Jinal Kothari

Reputation: 127

Setting up wcf netTcpBinding with minimum configuration

I have a service which will be self hosted. Multiple clients connect ot the service and consume it. I am leaning towards tcp as it provides sessions without any extra code and also hopefully a perpormance boost.

The clients(wpf application) all have a username and password that I store in a db on the server. Now the question is how do I set this binding up? The security requirements are not very high and I'd prefer a simple solution.

I am very new to wcf and services in general. I gathered that I could use certificates for authentication, but have no clue how they work. Don't know much about windows authentication either.

To recap:

I store username/password on server. I need to get the tcpBinding working over the internet with as little configuration as possible Security is not a major concern Client computers not in my domain.

If the question is too broad, links to resources, even pointers to what I should be looking at would be greatly appreciated.

Upvotes: 0

Views: 412

Answers (1)

Shiraz Bhaiji
Shiraz Bhaiji

Reputation: 65391

For this scenario you should use basichttpbinding over https.

The reasons for this are:

  • You will be sending data over the internet (basichttpbinding is simplest in this case)
  • You will be sending username and password over the internet (use https/SSL to stop these going over in clear text)

Here is an example: http://msdn.microsoft.com/en-us/library/ms731361.aspx

To get the https to work set the security mode to transport.

Upvotes: 1

Related Questions