0
我們有一臺服務器(IIS 6.0)有2個網站託管錯誤的請求內容長度沒有達到WCF
一個是代理等是一個WCF REST的API
現在的問題是,當代理網站在內容長度超過8000的情況下命中API,例如對於前9747或8398,它在代理中發出400次錯誤的請求,並且在API中發生它發生的事情。
WCF調度呼叫之前不叫
WCF調度BeforeSendReply被調用,內容長度爲0那裏。
我們在結合
<webHttpBinding >
<binding name="binding1" closeTimeout="00:01:00" openTimeout="00:01:00"
receiveTimeout="00:10:00" sendTimeout="00:01:00" maxBufferSize="73400320"
maxBufferPoolSize="73400320"
maxReceivedMessageSize="73400320"
transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="73400320" maxStringContentLength="73400320"
maxArrayLength="73400320" maxBytesPerRead="73400320" maxNameTableCharCount="73400320" />
<security mode="None">
<transport clientCredentialType="None"/>
</security>
</binding>
</webHttpBinding>
可以做些什麼,我想它的內容長度問題