Combined SOAP/JSON/XML in WCF, using UriTemplate

前端 未结 3 1070
谎友^
谎友^ 2021-01-30 11:25

I\'m trying to build a generic web service interface using WCF, to allow 3rd party developers to hook into our software. After much struggling and reading (this question helped

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-30 11:55

    Drew's answer is spot on, but I think the question still stands. Is there a sane way of having JSON for AJAX () and the blessings of UriTemplate?

    I think it is worth mentioning that JSON returned with is different than JSON generated with [WebGet(ResponseFormat=WebMessageFormat.Json)]. The former is wrapped around the the MS AJAX 'd' element e.g. {"d":[{...}]}.

提交回复
热议问题