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

WCF compression in WPF app

1 Answer 94 Views
Web Services
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kevin
Top achievements
Rank 1
Kevin asked on 26 Oct 2011, 12:49 PM
Hi,

I'm using ORM and the DSW to link a WPF-client app with a WCF back-end. The WCF back-end (obviously) is generated using the data services wizard, and in the client app I'm using the DataManager class to access it.

I have IIS7 dynamic compression turned on and have added the atom+xml MIME type to the IIS config. If I make a request via IE, for example, I can clearly see (via Wireshark) an Accept-Encoding header is sent and the server returns compressed data. Making calls to the same endpoints via the DataManager, however, no Accept-Encoding header is sent and I'm getting uncompressed streams back. This is looking like it might be an important issue for the app because of some very slow link speeds at certain sites, and I'm wondering if there's a way (without rewriting my app to no longer use the DataManager!) to simply tell it to signal the server that it can accept gzip data.

I have seen a note about using RadCompression in Silverlight apps elsewhere on these forums, but adding the config section for RadCompression resulted in an error because it couldn't resolve the dependency, and I can't find a matching DLL to reference.

Anyone got any helpful tips? :)

Cheers,

Kev

PS - if it makes a difference, I'm using the Q2 2011 version (developer version, annual licence expired in Sept so I don't get Q3).

1 Answer, 1 is accepted

Sort by
0
Ivailo
Telerik team
answered on 31 Oct 2011, 04:32 PM
Hello Kevin,

You should be able to use the RadCompression component to achieve what you need. Could you send us the details of the error so that we can analyze it and guide you to resolving the issue?

Also it will be useful if you can specify your .NET version and IIS version in order for our analysis to be more precise.

I am looking forward to your feedback.

Best wishes,
Ivailo
the Telerik team

NEW and UPDATED OpenAccess ORM Resources. Check them out!

Tags
Web Services
Asked by
Kevin
Top achievements
Rank 1
Answers by
Ivailo
Telerik team
Share this question
or