Hello,
i'm doing a new REST web service
I managed to PUT an Employee using xml format but I wanted to know if it's possible to put employee list always with XML format ?
in the interface we can have something like that:
[OperationContract] [WebInvoke(Method = "PUT", RequestFormat = WebMessageFormat.Xml, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = APStatusUriTemplate.UpdateEmployeeList)] int UpdateEmployeeList(List<Employee> UpdateEmployeeList);
and in the svc.cs
public int UpdateEmployeeList(List<Employee> updatedEmployeeList) { return Business.BusinessAccessLayer.UpdatedEmployeeList(updatedEmployeeList); }
I wanted to know What I should put in the Employee Model class to do that
the xml provided will have Employees root node and several Employee sub nodes
thanks in advance