0

I'm newbie in WCF. I have some questions need to be answered.

Can I use WCF to make a simple chat application from a client to a client (via WCF Service) ?

I have tried follow many examples, And i got a problem. I don't think that IIS need to be installed when i using WCF Selft Hosted, right ?

Sorry about my English !

Hai Tran
  • 107
  • 1
  • 11
  • "Yes, but it would not be the best solution". And "Yes". If those answers are not helping you, maybe you could try to find a more constructive question. – nvoigt Mar 22 '13 at 08:21
  • 1) Yes, 2) Yes. Get to grips with just sending data one way first. Then do it the other way around. You ultimately need to understand the client/server configuration first, before writing chat mechanisms. The answer recommended by @Thorsten Dittmar would be the recommended approach, but it is an advanced scenario. – Dominic Zukiewicz Mar 22 '13 at 08:53

1 Answers1

0

You don't need IIS for self-hosted WCF services. Look at the ServiceHost class.

Yes, you can make a chat application (client to client) using a service "in the middle". The clients would have to register with the service and then a callback contract should do the job.

Thorsten Dittmar
  • 55,956
  • 8
  • 91
  • 139
  • I follow this tutorial: http://www.c-sharpcorner.com/uploadfile/dhananjaycoder/hosting-wcf-service-with-nettcpbinding-in-windows-service/ And get stuck at step 8: An error appear when i hit Go button. Cann't get metadata ...blah blah blah – Hai Tran Mar 22 '13 at 09:21
  • This should go into another question, don't you think? – Thorsten Dittmar Mar 22 '13 at 09:36