I have a method:
[WebGet]
[OperationContract]
public int CollabSortFolder(int FolderId, Dictionary<int, int> Items)
{
Console.Write(Items);
return -1;
}
If I try this url:
http://server/CollabSortFolder?FolderId=12&Items={"1":3,"4":5,"6":7}
Items.Count is 0
What is the proper syntax to get my Dictionary filled?
You can customize the deserialization of a query string parameter by writing a custom QueryStringConverter for your service. The code below shows one which can understand the format you have in your question.