WCF compression in WPF app

2 posts, 0 answers
  1. Kevin
    Kevin avatar
    9 posts
    Member since:
    Sep 2010

    Posted 26 Oct 2011 Link to this post

    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).

  2. Ivailo
    Admin
    Ivailo avatar
    318 posts

    Posted 31 Oct 2011 Link to this post

    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!

  3. DevCraft banner
Back to Top