Search code examples
c#.netwcfarrayswebhttpbinding

How to receive arrays through WebHttpBinding?


Will anything like

    [OperationContract]
    [WebGet]
    string IWannaRead(int[] ids);

work? And how to form a link\url (www.example.com/service.svc?ids=1,2,3,4,5,6,7,8) for the request?


Solution

  • Yes, you can. It works exactly as you specified.