Click here to Skip to main content
15,921,113 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
Hello,

I am developing the WCF REST API for mobile app which required the request and response format in the JSON.
Response has the common format like this
{
"statusCode":"200/400/401/404/405",
"errorDescription":"blah blah",
"methodName":{"To":"", "subject":"", }
}

if Method name is GetName then
response would be :
{
"statusCode":"200",
"errorDescription":"",
"GetName":{"name":"HP"}
}


here method name is dynamic as per the method call.

So How can I get above dynamic format from each WCF Rest API method.?

Thanks.....
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900