Cannot we pass Hash table in WCF services?
- by Thinking
I have just odne something like
[ServiceContract]
public interface IService1
{
[OperationContract]
Hashtable MyHashTable();
// TODO: Add your service operations here
}
and implemented as
public Hashtable MyHashTable()
{
Hashtable h = new Hashtable();
for (int i = 0; i < 10; i++)
h.Add(i, "val" + i.ToString());
return h;
}
When I am trying to run the service , I am getting the error "This operation is not supported in WCF test client"
Why so?
Thanks