I have a very simple WCF Service called pilltrkr.svc. I\'m trying to call this service from jQuery via the following code:
var jsondata = JSON.stringif
I figured out how to finally call my simple WCF service from jQuery. I found some source code after reading this link:
http://www.west-wind.com/weblog/posts/2009/Sep/15/Making-jQuery-calls-to-WCFASMX-with-a-ServiceProxy-Client. This link doesn't provide the source but it was another page that referenced this link.
Anyway, I downloaded the code and started to compare my code versus this working project that was calling a WCF Service via jQuery. What I found was that my web.config file was way too complicated so I shorted that up considerably. Then I also realized that my methods were not public. So I made them public and then after a few more tweaks (i.e. taking out the namespaces) the page started to return the simple string I was trying to return.