On the server side of my application I have a function like this:
public function GetDS as MyTypedDS
Dim dsRetVal as new MyTypedDS
'Make fantastic things with the dataset
return dsRetVal
end function
On the client side I call this function through a generated “service reference”:
Dim ds as Reference1.MyTypedDS = myRefInst.GetDS
How can I disable schema serializaion of the typed dataset to reduce the traffic?
Is it enough to set the SchemaSerializationMode of ‘dsRetVal’ to ExcludeSchema before returning it? Or is this option ignored by WCF?
Thank you
Have you tried setting the RemotingFormat on the DataSet to SerializationFormat.Binary? We use this extensively in .Net Remoting of DataSets (which, of course we only use when absolutely necessary) and it helps significantly with the performance.
A couple of other options:
1) Binary serialize the DataSet and just transfer the ByteArray
2) Serialize the DataSet into a string format (i.e. JSON) then zip the resultant string and transfer the zipped data.