I am developing a WCF REST service in C #. It works fine for a single parameter. Now I need to expand it to support several parameters. Please help me in this matter.
Thanks in advance...
Use the following declaration in the interface:
[OperationContract]
[WebInvoke(Method = "POST",
ResponseFormat = WebMessageFormat.Xml,
RequestFormat = WebMessageFormat.Xml,
BodyStyle = WebMessageBodyStyle.WrappedRequest,
UriTemplate = "login")]
resLogin Login(reqLogin rData, int floorId);
source
share