I have only had practical experience with plain WCF services and WCF REST services but as needs changed I need to look at other options....
What is the difference between OData and WCF Data servcies?
Isn't WCF Data Services OData in .Net (It can be configured to return Atom feed or JSON etc)?
What if I wanted to do something more complicated than just CRUD?
For example when I make a Http request and get a response like below.
req = (HttpWebRequest)WebRequest.CreateDefault(new Uri(FCookieLocation));
HttpWebResponse resp1 = (HttpWebResponse)req.GetResponse();
Stream stream = resp.GetResponseStream();
I want to then do something like
while (true)
{
byte b = stream.ReadByte();
}
But REST Services, as soon as you return from the method you wrote, terminate the response immediately. Is there a way to keep the stream alive at the server end so I can keep writing data to it and the client just keeps reading from it?
I know ASP.Net web handlers have something of such a feature, but in my case I may need to write my own webserver that listens on a socket for Http requests(so connection stays open) to achieve this and keep writing to the socket perhaps?
Sorry if the question isn't clear just the best way I could explain it.
How is it best to use WCF Data Services to fit with the MVVM pattern?