HTTP could not register URL http://+:8000/HelloWCF/. Your process does not have access rights to this namespace

Unfortunately the link in the exception text, http://go.microsoft.com/fwlink/?LinkId=70353, is broken. However, it used to lead to http://msdn.microsoft.com/en-us/library/ms733768.aspx which explains how to set the permissions. It basically informs you to use the following command: netsh http add urlacl url=http://+:80/MyUri user=DOMAIN\user You can get more help on the details using the help of netsh For example: netsh … Read more

How do I return clean JSON from a WCF Service?

Change the return type of your GetResults to be List<Person>. Eliminate the code that you use to serialize the List to a json string – WCF does this for you automatically. Using your definition for the Person class, this code works for me: public List<Person> GetPlayers() { List<Person> players = new List<Person>(); players.Add(new Person { … Read more

REST / SOAP endpoints for a WCF service

You can expose the service in two different endpoints. the SOAP one can use the binding that support SOAP e.g. basicHttpBinding, the RESTful one can use the webHttpBinding. I assume your REST service will be in JSON, in that case, you need to configure the two endpoints with the following behaviour configuration <endpointBehaviors> <behavior name=”jsonBehavior”> … Read more

Best Practices for securing a REST API / web service [closed]

As tweakt said, Amazon S3 is a good model to work with. Their request signatures do have some features (such as incorporating a timestamp) that help guard against both accidental and malicious request replaying. The nice thing about HTTP Basic is that virtually all HTTP libraries support it. You will, of course, need to require … Read more