I have a template code under the AJAX enabled WCF service. What can I do to return JSON instead of XML? Thank you.
using the system; Using System.Linq; Use the system. time. Timeliness; Using System.ServiceModel; Using System.ServiceModel.Activation; [SOPNT Compatibility Rewari (RequirementsMod = ASPNET CompatibilityRirementMode.Alvard)] Public Sector Cost Service [// HPPET GET [Operation Contract] [WebGate] Add WebGet Attribute to Use the Public Double CostOffSundWatch {Return 1.25 * Quantity; }}
You have tried:
[WebGet (Response format = WebMessageJason)]
No comments:
Post a Comment