Here is the deal.. I have a REST method that returns Generic.List<DTOSupervisor>
which has to be retreved by using a HTTP Send and GetDynamicValueProperties components.
My REST method signature:
[OperationContract]
[WebGet(
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Wrapped,
UriTemplate = "GetSupervisorCollection/{employeeId}/{companyName}")]
List<DTOSupervisor> GetSupervisorCollection(string employeeId, string companyName);
REST Json out
{"GetSupervisorCollectionResult":[
{"Department":"IT","Email":"test@mail.com","EmployeeNumber":"00028","IsDepartmentHead":false,"LoginName":"domain\nmuhammedh","Name":"Muhammedh Naufer"},
{"Department":"IT","Email":"tariq@mail.com","EmployeeNumber":"00051","IsDepartmentHead":true,"LoginName":"domain\tariq","Name":"Tariq Aziz"}
]}
My question is after I get the results as JSON, how can I convert it to a list of DTOSupervisor objects inside my workflow.