Via Twitter I came across this post showing how easy it is to interface with Twitter using WCF 3.5. Dariusz hypothesizes that it would be cool to do 1: TwitterStatusProxy proxy = new TwitterStatusProxy( “username”, “password” ); 2: 3: // retrieve friends timeline 4: XElement timeline = proxy.GetFriendsTimeline(); 5: 6: // do whatever you want [...]
Posts tagged WCF
The ultimate WCF Service contract
[ServiceContract] public interface IRESTService { [OperationContract] [WebInvoke(Method = "GET",UriTemplate = "*")] Stream Get(); [OperationContract] [WebInvoke(Method = "POST", UriTemplate = "*")] Stream Post(Stream body); [OperationContract] [WebInvoke(Method = "PUT", UriTemplate = "*")] Stream Put(Stream body); [OperationContract] [WebInvoke(Method = "DELETE", UriTemplate = "*")] Stream Delete(); }
What is needed to build distributed applications.
Tim Ewald responds to Don’s question about the validity of the the four tenets. Don asked for input… This quote really struck home: And finally, I’m not sure I want to build on a layer designed to factor HTTP in on top of a layer that was designed to factor it out. Considering that I [...]
Using ServiceModel.Web to return XML documents instead of Data Contracts
So this may be heresy to some, but I really don’t like returning data contracts. If I understand correctly, Erik Johnson is saying pretty much the same thing here when he says “Please dont make us write objects to an HTTP context. We write data to an HTTP stream.” Anyway, if anyone else is trying [...]

Posts