Keep it Simple

// practice, the distance between dream and achievement

Tag: WCF (page 1 of 6)

WCF – WebAPI 2.0 with OData

ASP.NET Web API is a framework that makes it easy to build HTTP services that reach a broad range of clients, including browsers and mobile devices. It is an ideal platform for  building RESTful applications on the .NET Framework.

This is a quick overview of WebAPI 2.0 and I would be not be going into much details.

Continue reading

WCF – Returning Errors in a WCF RESTful Web Service

It is common that RESTful web service may return an error, there are many ways to return the errros. Recently I’ve begun to favor a more organic approach. Something that is more RESTful in nature, that is modifying the http status code to reflect that an error has occurred.


You could evaluate the exception and return codes based on certain situations, I use the above for unexpected errors. You could also make the response.StatusDescription the exception message. The calling process can now key off of the http status code and handle the situation as required by it’s own system and rules.

WCF – REST Web Service at a Glance

REST stands for Representational State Transfer. This is a protocol for exchanging data over a distributed environment. The main idea behind REST is that we should treat our distributed services as a resource and we should be able to use simple HTTP protocols to perform various operations on that resource.

Continue reading

WCF – Consume WebService Using HttpWebRequest

I needed to implement a way to consume webservice using HttpWebRequest and did it as follows

Considering that below is the web method to be called.

create a HttpWebRequest passing the WS url


Older posts

© 2018 Keep it Simple

Theme by Anders NorenUp ↑