top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Why returning dataset or data table from WCF service is not a good practice?

+4 votes
1,137 views

Why returning dataset or data table from WCF service is not a good practice?
What are the alternatives ?

posted Jan 28, 2014 by Asmita Agrawal

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+2 votes
 
Best answer

I think that returning dataset or datatable is not good in real time because most of the times we use serializability to transmit the data. And collections are best suitable for this.

Using dataset or datable will create extra burden.

Also in some cases dataset can be strongly typed and you can define them ahead of time.

Before sending data across platforms/network, it is advisable for them to be serialized and even encrypted for secure reasons into some sort of formats, and XML seems most promising for large chunks of data.

answer Jan 28, 2014 by Atul Mishra
Similar Questions
+10 votes
+5 votes

Could the IIS-hosted WCF service make use of HTTP transport security if the IIS virtual derectory that contains the service does not support it?

...