I have developed a WCF RESTful POST service which accepts JSON as the body. When I try to POST via a web browser I get a "Bad Request" error. After tracing the problem the actual exception is that the Message cannot deserialize since it is empty. I'm using
VS2010 .Net 4 framework WCF Restful template and IIS 6 on windows 2003. I have one web site and one service site. Both are hosted on the same machine. Also using AJAX to access the service.
The funny things are when I access the same service using a browser that is on the hosting machine, things work great. Also one I run the website from a different server and connect to the service it seems to work. Or if I user Fiddler and connect to host
machine web site things seem to work. The only time it doesn't is when I connect via a browser to the website from any other machine except the host. Other than that it works.
If you need code please let me know.
View Complete Post