Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
85
Issue binding XML sent via Web API
posted

I am able to bind XML data that is built locally (e.g. http://www.igniteui.com/data-source/xml-binding) to a datasource and then bind that datasource to a grid. But when I change the ig.datasource's dataSource to a Web API URL returning the same exact XML string, I consistently get an error such as this:

Error: There was an error parsing the XML data and applying the defined data schema: data.evaluate is not a function
http://localhost:53008/igniteui/js/modules/infragistics.datasource.js
Line 37


I've also seen the same error with an inner message suggesting the problem is instead related to root.IterateNext, but attempting to apply this fix (http://ko.infragistics.com/community/forums/p/69866/353775.aspx) does not work.


Initially, I had thought that the issue was the Web API's XMLFormatter alone, but if I observe the XML in Firebug, it is identical to the XML that I had used successfully when constructed locally.  In other words, I don't see any obvious issue in the construction of the XML.


I have attempted to eliminate as many factors as possible, such as:

#1) It doesn't matter whether I bind to the grid or not. It's strictly an issue with the datasource.
#2) It doesn't matter whether I pass across an xmlstring or xmldocument.
#3) It doesn't matter if I remove the JSONFormatter entirely from the Web API configuration.
#4) It doesn't matter if I use datasource or xmldatasource.

I'm at a loss for what's wrong here. The Infragistics samples are seriously lacking real-life remote data retrieval scenarios, so I haven't found anything to help.

Jason