I am newbie to WCF. Hence, this question. I am in the process of converting an asmx web service to WCF service.
I am having trouble defining data contracts.
I have two operations on my service contract, one returns an array of Customer, where Customer is my custom type with some fields.
Here, my question is which needs to declared as data contract.
Is it the Customer class or Customers class which contains an array of Customer or is it both?
Please do suggest
Customerclass, and then return a collection of that class or a single instance, depending on what the operation returns. - Tim