如何解决WCF数据服务中的默认邮件大小限制 [英] how to work around the default message size limit in WCF data service

查看:69
本文介绍了如何解决WCF数据服务中的默认邮件大小限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述






up vote2down votefavorite
 

推荐答案

您好,

要提高邮件大小限制,请查看主题
流媒体提供程序(WCF数据服务)
,其中包含此WCF配置以启用大型邮件使用WCF数据服务进出OData服务:

To raise the message size limit, check out the topic Streaming Provider (WCF Data Services), which includes this WCF configuration to enable large messages to and from an OData service using WCF Data Services:

 <system.serviceModel>
 <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
 <services>
   <!-- The name of the service -->
   <service name="PhotoService.PhotoData">
     <!--you can leave the address blank or specify your end point URI-->
     <endpoint binding="webHttpBinding" 
      bindingConfiguration="higherMessageSize" 
      contract="System.Data.Services.IRequestHandler"></endpoint>
   </service>
 </services>
 <bindings>
   <webHttpBinding>
     <!-- configure the maxReceivedMessageSize value to suit the max size of 
         the request (in bytes) you want the service to receive-->
     <binding name="higherMessageSize" transferMode="Streamed" 
     maxReceivedMessageSize="2147483647"/>
   </webHttpBinding>
 </bindings>

 

关于第二期,请查看这篇文章:

For your second issue, check out this post:

http:// stackoverflow.com/questions/775692/using-system-json-for-non-silverlight-projects

 

Hope这有帮助,

Monica Frintu

Monica Frintu


这篇关于如何解决WCF数据服务中的默认邮件大小限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆