WCF: Add Service Link Creates Contract with Message

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.

+3
source share
1 answer

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.

0
source

All Articles