Reputation: 3345
I have a asp.net web application with jquery controls. I have a datagrid that will display data from a database table and created a WCF Service to access the db and return the data. I want to be able to call the WCF service from this application which is on a different server and have the xml data returned, converted to json format to be used in the datagrid which is a jquery widget. I have tested the web service and it works fine. Should I call the web service from the javascript function within the xml or create a .net method behind that calls the service and then does the conversion? From these how would I get started? Any ideas/links?
Upvotes: 0
Views: 663
Reputation: 7636
You can use a webHttpBinding to allow you to call your WCF service directly from javascript
Upvotes: 1