wcf.net-remoting

.NET Remoting and WCF


I have an old ASP.NET app connecting to a .NET Remoting service. I'd replaced the .NET Remoting service to a WCF service. I have the original WSDL and I've generated a WCF service by the help of svcutil. I don't know whether the client will able to connect and call the WCF service without changing its code. Is it possible to solve this problem, please?


Solution

  • A service can be both a remoting service and a WCF service at the same time. Just configure it with RemotingServices as usual for remoting. Then decorate with OperationContract / ServiceContract and construct with ServiceHost and you can create clients for both techniques, just that remoting is TCP only.