This is a migrated thread and some comments may be shown as answers.

Usage of DataSourceRequest / DataSourceResult wihtout MCV coupling

1 Answer 295 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Pascal
Top achievements
Rank 1
Pascal asked on 17 Nov 2016, 01:28 PM

Hello Telerik team,

I just wanted to know if there are plans to decouple DataSourceRequest / DataSourceResult from the MVC subsystem ?

We want to use it between a WCF client and a WCF server but it does not serialize well with the SOAP MVC XML serializer.
We succeeded in serializing JSON in the WCF XMLmessage although it require us to convert/parse JSON to DataSourceRequest/DataSourceResult both at the client and the server.
By the way in order to achieve this the WCF hosting project has to reference a bunch of MCV assemblies just because the Kendo.Mvc.Ui assembly depends on it.

In addition to this serializing / deserializing JSON <-> DataSourceRequest/DataSourceResult is easy with the Newtonsoft JSON converter but it becomes complicated if we want to transfer an object instead of a JSON string (representing a serializable object similar to DataSourceRequest/DataSourceResult) ...

I may be wrong but it seems to me that all of this seems fairly complex for a task that sounds simple.

I saw the following post about using existing WCF service but I think this does work only with REST web service.

So is there any plan to be able :
 - to use DataSourceRequest / DataSourceResult in wcf xml serialization out of the box
 - to use the DataSourceRequest / DataSourceResult types in a convenient way without referencing all the MVC subsystem types (such as System.Web.Mvc.dll, System.Web.WebPages.dll, ...)

?

Thanks for your work and support,
 Dev

 

1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 21 Nov 2016, 12:37 PM

Hello Pascal,

DataSourceRequest and DataSourceResult classes are designed to be part of MVC applications and there are no plans to decouple them from the Kendo.MVC assembly. Mainly, because the functionality behind is design to operate with JSON-serializable objects. 

However, the MVC wrappers can by used with SOAP and REST services, although, there are some built-in features in DataSourceReuqest and DataSourceResult that will not work automatically with these data binding options. You can read more about the possible configurations here: http://www.telerik.com/forums/unable-to-consume-wcf-data-service-using-kendo-grid

Also, if you would like to see some utilities or products that would help you to create services and bind them to our products I encourage you to suggest that in the Kendo Feedback portal, where other developers from the community could vote for it, comment and raise the demand for such a feature.

Regards,
Ianko
Telerik by Progress
Telerik UI for ASP.NET MVC is ready for Visual Studio 2017 RC! Learn more.
Tags
General Discussions
Asked by
Pascal
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or