Can WCF service replace TCPListener functionality?

I have a TCPListener based server application that listens for clients on one specific port. Clients connect, send some xml, get some xml back as a response, and then disconnect.

Is it possible to replace a TCPListener-based application with a WCF service without any changes for clients? If so, can anyone suggest resources that will help me build such a service?

+5
source share
2 answers
Theoretically Yes. WCF has many extensibility points, so you can enable your own message encoder , your own transport channel , etc. You can enable custom behavior to affect message format, etc. You should be able to do this even if you have your own message format or transport protocol. But this is a lot of work.

, , XML . ​​tcpTransport. . JSONP. , . .

+5

All Articles