This is a migrated thread and some comments may be shown as answers.

Using RadCompression for http WCF?

3 Answers 126 Views
Compression
This is a migrated thread and some comments may be shown as answers.
SUNIL
Top achievements
Rank 2
Iron
SUNIL asked on 08 Feb 2011, 09:27 PM
I have a situation where a http WCF service is hosted in IIS, and this service is called by a Winforms client based on Telerik's radcontrols for winforms.
My question is, can I use RadCompression to compress the WCF service responses and if yes, then how would I implement it? I would think it should be possible since the http WCF is just another http website with a web.config file like any other ASP.Net website.

Thanks
Sunil

3 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 09 Feb 2011, 10:07 AM
Hello Sunil,

RadCompression is a HttpModule that must be enabled in the web.config for the web site where the service is hosted(namely IIS).

Bellow is the related documentation on how to enable RadCompression:
http://www.telerik.com/help/aspnet-ajax/radcompression.html

Best wishes,
Nikolay
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
SUNIL
Top achievements
Rank 2
Iron
answered on 11 Feb 2011, 02:58 AM
Hi Nikolay,

RadCompression does not work when used in a WCF. I tried the suggestions in link you provided but it doesn't do any compression on a large  6 MB response.
In your link, you don't even explain how to enable it for  'Service.svc'  WCF file.
If you still know something that wil make it work with WCF then let me know. Do you have any WCF sample, where RadCompression works?

Thanks
Sunil
0
Nikolay Rusev
Telerik team
answered on 16 Feb 2011, 03:43 PM
Hello Sunil,

As my colleague Radoslav mentioned, RadCompression will work if you have an asynchronous postback via ajax. By default the RadCompression module will compress AJAX requests only. If you could simulate such requests in WinForms application the compression will work as expected.

Greetings,
Nikolay
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Compression
Asked by
SUNIL
Top achievements
Rank 2
Iron
Answers by
Nikolay Rusev
Telerik team
SUNIL
Top achievements
Rank 2
Iron
Share this question
or