I need to code from scratch a WCF service with net.tcp binding, self-hosted on IIS7, and call it from a console application. Can you give me a step-by-step guide for the service and for the sample client application?
Please see the following guides and tutorials:
http://msdn.microsoft.com/en-us/library/ms731758.aspx
http://www.youtube.com/watch?v=FPrQPA9QmUw
How about this little Guide from Microsoft?
Related
I currently have a self-hosted WCF service running in a Windows service. I have been asked to host the WCF service in IIS 7. It seems that all of the MSDN suggestion require me to implement a wrapper class for the service instead of loading the service dll directly via a configuration file. I have already read the links Why/how to migrate self-hosted WCF service to IIS7? and WCF Service. Can't host in IIS7. Has anybody done this before? If so, can you point me in the right direction?
Lately,all our services were switched from basicHttpBinding to net.tcp. Our services hosted in IIS. The problem is that with this change we lost our IIS logging abilities.
We aware about WCF Tracing,but our system utilities works, meanwhile, with IIS Logging only.
Is there some way to enable IIS logging of WCF net.tcp services?
Thank you.
It will not strait forward as with basic http binding, but it seems to be "done-able" - take a look on this posts:
http://blogs.msdn.com/b/james_osbornes_blog/archive/2010/12/07/hosting-in-iis-using-nettcpbinding.aspx
or
http://social.msdn.microsoft.com/Forums/vstudio/en-US/6db46819-e511-4ec2-9c3f-b09deaaedf79/logging-nettcpbinding-requests-in-the-iis-log
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 !
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.
Anyone know of any good articles that describe how to accomplish this?
All you would usually have to do is set your binding to use transport security, then have IIS set for SSL. That is assuming your using a standard WCF binding and hosted in IIS.
You can google "wcf transport security" or see the main MSDN article: http://msdn.microsoft.com/en-us/library/ms733043.aspx
There is also this StackOverflow topic 425978/enable-ssl-for-my-wcf-service that shows a snipit of XML configuration.
If there is a more specific issue, then I can try to help further... Custom bindings or being self-hosted take a little more work.
i have develop a silverlight application with wcf net.tcp binding. i want create an object of service in sliverlight. how it is possible. please help me.
Thanks
Version Update,
Silverlight 4 now has the net.tcp binding
No, as far as I know, up to and including Silverlight 3, it supports only the basicHttpBinding (and possibly the webHttpBinding as well?). NetTCP is not supported, sorry.
Here's a blog post by Yavor Georgiev (Program Manager, Silverlight Web Services Team) where he explains what's new in web services with Silverlight 3 - unfortunately, no mention of netTCP :-(
Marc
Silverlight 4 supports tcp binding.
Some extended info:
http://tomasz.janczuk.org/2009/11/wcf-nettcp-protocol-in-silverlight-4.html