Here is one of the methods from my wcf rest service:
[OperationContract]
[WebInvoke(UriTemplate = \"getInvoices\", Method = \"POST\", RequestFormat =
You will need to implement custom collection derived from List<InvoiceRet>
and mark it with CollectionDataContractAttribute
:
[CollectionDataContract]
public class ListInvoice : List<InvoiceRet>
{ }
Use this collection as return type from your operation. Here is full description of using collections in data contracts.