Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I assume you're <a href="http://msdn.microsoft.com/en-us/library/cc668805.aspx" rel="noreferrer">hosting using WCF</a> in your .NET "app"? If so, you would need write some custom <a href="http://msdn.microsoft.com/en-us/library/system.servicemodel.channels.messageencoder.aspx" rel="noreferrer"><code>MessageEncoder</code></a> implementation because WCF does not provide this out of the box. Luckily there is <a href="http://msdn.microsoft.com/en-us/library/ms751458.aspx" rel="noreferrer">a sample in the SDK</a> that you can use.</p> <p>I actually just realized that this is only step one of two depending on whether or not your client is also WCF? While this will encode the message, it would require that your client be using a similarly configured decoder because that implementation will <em>not</em> set the HTTP headers that are necessary to signal that encoding has occurred to a "pure" HTTP client. So, if it's not a WCF client on the other side, in addition to encoding the message itself, you would need to use the <code>WebOperationContext</code> to apply the appropriate <code>Content-Encoding: gzip</code> header. Unfortunately you cannot do this within the <code>MessageEncoder</code> implementation itself because it's too late in the process because by the time the <code>MessageEncoder</code> is asked to write the message contents the message frame, in this case the HTTP headers, has already been written. So, you would also need additional behavior, in the form of an <a href="http://msdn.microsoft.com/en-us/library/system.servicemodel.description.ioperationbehavior.aspx" rel="noreferrer"><code>IOperationBehavior</code></a>, applied to your operations that sets the headers accordingly.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload