Consume Json WCF service with .Net 3.5 client

后端 未结 1 1806
别那么骄傲
别那么骄傲 2021-01-28 07:45

I\'m having some issues accessing a WCF Web service that returns Json. Usign the WCF Test Client, I figured what config to use but this config is for .Net 4.0 and my client app

相关标签:
1条回答
  • 2021-01-28 08:41

    In 3.5 you cannot set these values in config, but you can set then in code, see: http://msdn.microsoft.com/en-us/library/system.servicemodel.description.webhttpbehavior.defaultoutgoingresponseformat(v=vs.90).aspx

    The default value is XML, the config example you posted is also XML, but in the text of your question says that the service returns JSON.

    0 讨论(0)
提交回复
热议问题