Rella
Rella

Reputation: 66935

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?

Upvotes: 3

Views: 193

Answers (2)

Mark
Mark

Reputation: 11740

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

Upvotes: 1

Related Questions