Datatable unable to parse JSON data returned by ODATA service deployed remotely

Datatable unable to parse JSON data returned by ODATA service deployed remotely

vamittalvamittal Posts: 2Questions: 1Answers: 0
edited April 2015 in Free community support

I'm trying to implement DataTables that utilizes the ODATA service deployed remotely. The ODATA service returns JSON Data. The data is displayed into the datatables grid, if I deploy the service locally and specify a url somethign like (http://localhost:<PortNumber/ControllerName/ActionMethodName).

But, if I deploy the OData Service remotely and try to utilize the service, it gets stuck in processing. The ODATA service URL will be something like (http://<ServerName:<PortNumber>/ControllerName/ActionMethodName)

I used fiddler to check if the odata service is returning json data or not and found that in both the cases the json payload is received.

For another verification, I fired URLs for both the services separately and found the json payload to be returned back.

Note: I'm using the DataTables ODATA plugin from:

http://vpllan.github.io/jQuery.dataTables.oData/

Please help!

This discussion has been closed.