Changing JSON response root node message in WCF -
I have created a certain gate-time service in WCF and the service returns Jason as a response message. In addition to this WebMessageBodyStyle is set to wrap, so it will be the id related to the data that it gives. But when I use the filer to test my service, the response string is:
  {"GetTimeResult": "2010614104013"}   GetTimeResult of the string as response above the ID, I am thinking that there is no way to change that test of the timestamp. So it looks like this:
  {"timestamp": "2010614104013"}   Cheers.
If you are using the data contract / datmail attribute in your code, As well as some other named parameters).
  [Datamember (name = "timestamp")] Public string GetTimeResult   
Comments
Post a Comment