开发者

dynamic content type

开发者 https://www.devze.com 2022-12-18 15:14 出处:网络
i want to make a single wcf rest function which can return any content type (text-html / applicaiton-javascript and even gif .

i want to make a single wcf rest function which can return any content type (text-html / applicaiton-javascript and even gif .

what should be the signature of the function ( the return type )

what should be the format of the service ?like [WebGet(ResponseFormat = WebMessageFormat.Json)]

P.S: i cant make any new method due to the format of my javascript calls and due to the limitation on wcf rest since it doesnot differentiate b/w calls based on the开发者_高级运维 parameter part(after the ? ) of the query string .

thanks


You can use the return type Stream.

0

精彩评论

暂无评论...
验证码 换一张
取 消