wcftestclient - How to pass List<ABC> to WCF test client -


i have datacontract below

[datacontract]     public class test     {         public list<validation> val { get; set; }     } 

and operationcontract below

public bool testvalidation(test t, out string message)         {             return validationutility.validatefields(t.val, out message);         } 

i not getting how set value test.val on wcf test client

enter image description here

firstly, seems you're missing datamember attribute list.

[datacontract] public class test {     [datamember]     public list <validation> val { get; set; } } 

also, ensure datacontract , datamember attributes validation set well. restart wcf test client , try calling service again.

expand objvalidation part on name column. + sign should appear next request parameter name. can add elements , fill out properties (value column) expanding each individual element you've added.


Comments