The proxy generated for the WCF service creates message contracts if I have a datatable / dataset data member, although the option "Always create message contracts" is not set. How can I force a data contract instead of a message contract.
Thanks in advance.
Because these data types use some .net dependencies. It is not fully compatible. I suggest not using any datatable or datatable. For example, declare your data structure in a class and return an IEnumerable type.