tags:

views:

36

answers:

2

hi , 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

A: 

You can use the return type Stream.

Darrel Miller
A: 

You can also just give up and use www.openrasta.com which does all this out of the box.

serialseb