Where do you want to access the datas
property of your service? Does it in the client side? If so, It looks like there is a little misunderstanding of how the things works.
When you create a client to your service (using ChannelFactory or Add Service Reference), it creates an object that implements your ServiceContract
(in your case: IDataService
) and contains implementation for your OperationContract
s - No properties are transfered.
If you want to get the value of datas
, you should implement GetData
to return it. You should declare the data (Data
) as a DataContract
(not the service...)