Cannot we pass Hash table in WCF services?
Posted
by Thinking
on Stack Overflow
See other posts from Stack Overflow
or by Thinking
Published on 2010-04-19T10:10:30Z
Indexed on
2010/04/19
10:13 UTC
Read the original article
Hit count: 369
wcf
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
© Stack Overflow or respective owner