Consuming JSON Web Service from jQuery and Server Code.
if you have your web service returning JSON string to utilize on your ajax calls if you planned to connect to this service using server code (Web Reference) for internal facing app for example you have a problem.
If you are using HttpModule to alter the content-type to application/json you need to disabled this first, add web reference and then re-enable it again.
when trying to add web reference with Visual Studio you can’t get valid disco/wsdl files however if you added the reference while disabling the HttpModule and re-enable it again, it works.
Hope this helps.