StreamedResponse and Security RRS feed

  • Question

  • In setting up the binding for a WCF client with X509 certificates, I need to set up getting the response as chunked/streamed.

                HttpsTransportBindingElement httpsBindingElement = new HttpsTransportBindingElement();
                httpsBindingElement.RequireClientCertificate = true;
                //httpsBindingElement.TransferMode = TransferMode.StreamedResponse;

    When I enable the Transfermode.StreamedResponce, the client stops with an error during processing the request.
    As far as I can se from other posts, it is not possible to combine Security with Streaming in WCF. It is rather annoying, as the response is just a small OK or Error.

    Are there other ways of configuring the client for this purpose?

    Monday, February 18, 2013 3:05 PM


  • Hi,

    As per my knowledge, streamed requests are not supported when using authentication over transport security (Basic, Digest, NTLM, etc), but you can still use transport security with Anonymous authentication. You can secure the service using Message level security and if you want to use custom authentication you need create a custom security binding. Please take a look at the discussion here.

    More information on Security, see Security Overview.

    Hope this helps.

    Best Regards.

    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, February 20, 2013 2:16 AM