开发者

dynamic content type

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜