Transferring large payloads of data (Serialized Objects) using wsHttp in WCF with message security

前端 未结 5 1202
陌清茗
陌清茗 2020-12-08 01:34

I have a case where I need to transfer large amounts of serialized object graphs (via NetDataContractSerializer) using WCF using wsHttp. I\'m using message security and woul

5条回答
  •  既然无缘
    2020-12-08 01:42

    If you still want to use Message Security, I would recommend you to use MTOM to optimize the network bandwidth that needs be used to transfer the messages, and also the chunking channel for using smaller memory buffers when security is applied. Otherwise, WCF will try to load the whole message in memory to apply security, and therefore you will get the Insufficient memory exception.

提交回复
热议问题