Pages

Showing posts with label WCF. Show all posts
Showing posts with label WCF. Show all posts

Friday, May 4, 2012

How to solve Http 401 error for Http Put and Delete with WCF Rest

With the popularity of WCF Rest services, it is now a bit more common to issue HTTP PUT and HTTP DELETE requests. I don't remember using those verbs before in my career. Whenever I needed to delete something or update something, I would use HTTP POST and then handle the data in the back end. But times have changed, and with WCF Rest embracing the HTTP protocol, you are more likely to work with those two verbs more often.

Friday, March 16, 2012

Copying data between classes with Automapper

Sometimes you have similar classes in your project and you want to copy data from one instance of a class to another. In my old days I used to do that myself going field by field. That was until someone told me about Automapper.

Friday, March 9, 2012

Custom authentication for WCF REST over Https

I recently had to build a WCF REST service over HTTPS. Once built and functioning we decided to include  some sort of authentication mechanism, so that the service could only be used by authorized members and not anyone on the internet, which makes perfect sense.