Can you use WCF data services (ne OData, ne Astoria, ne ADO.NET Data Service) with NetTcpBinding?

I'm looking to create a WCF service to query data over a slow satellite connection, and I really like WCF Data Services. The problem I see is that HTTP is a very verbose format, and since everything I do is internal and .NET, is it possible to use NetTcpBinding instead to reduce some of the overhead?

Is it possible? Goodies?

+5
source share
2 answers

No, WCF Data Services is built on top of REST, and REST itself is very closely and completely based on HTTP verbs such as GET, PUT, POST, etc. - You cannot run them on top of NetTcp because they are associated with the HTTP protocol stack.

Perhaps there are other options to reduce the transmitted data? Pull your objects - cut fat, if you can - both by the number of lines received immediately, and by the number of transmitted attributes / data fields. You are probably the most promising approach.

+3
source

Studying this on my own, I looked at the MSDN article DataServiceHost , which still requires HTTP (it is derived from WebServiceHost).

, IDataServiceHost. MSDN:

, WCF , . , IDataServiceHost . IDataServiceHost :

  • .
  • IDataServiceHost.
  • , .
  • .

, , , MS . , NetTcpDataServiceHost. - - IDataServerHost? ?

+4

All Articles