wcf大文件上传配置详解
2012-11-27 22:01
351 查看
wcf大文件上传配置详解
网上很多都是扯淡的,这篇文章对命名规则进行了描述。测试可用,感谢原作者
服务器端:web.config
wcf大文件上传配置详解源码下载:http://pan.baidu.com/share/link?shareid=132910&uk=3372720248
原文地址: http://www.uol123.com/2012/11/26/wcf%e5%a4%a7%e6%96%87%e4%bb%b6%e4%b8%8a%e4%bc%a0%e9%85%8d%e7%bd%ae%e8%af%a6%e8%a7%a3.html | 数据库之家
网上很多都是扯淡的,这篇文章对命名规则进行了描述。测试可用,感谢原作者
服务器端:web.config
<system.serviceModel> <behaviors> <serviceBehaviors> <behavior name=“ExcelServer.Service1Behavior”> <!–name=命名空间(ExcelServer)+类名(Server1)+Bheavior–> <serviceMetadata httpGetEnabled=“true”/> <serviceDebug includeExceptionDetailInFaults=“false”/> <dataContractSerializer maxItemsInObjectGraph=“2147483647″/> </behavior> </serviceBehaviors> </behaviors> <services> <service behaviorConfiguration=“ExcelServer.Service1Behavior” name=“ExcelServer.Service1″> <!–name=命名空间(ExcelServer)+类名(Server1)–> <endpoint address=“” bindingConfiguration=“LargeBuffer” binding=“basicHttpBinding” contract=“ExcelServer.IService1″/> <!–name=命名空间(ExcelServer)+接口(IServer1)–> </service> </services> <bindings> <basicHttpBinding> <binding name=“LargeBuffer” maxBufferSize=“2147483647″ maxReceivedMessageSize=“2147483647″> <!–name=随意命名–> <readerQuotas maxStringContentLength=“2147483647″ maxArrayLength=“2147483647″/> <security mode=“None”></security> </binding> </basicHttpBinding> </bindings> </system.serviceModel> <system.webServer> <modules runAllManagedModulesForAllRequests=“true”/> </system.webServer> 客户端:ServiceReferences.ClientConfig <system.serviceModel> <bindings> <basicHttpBinding> <binding name=“BasicHttpBinding_IService11″ maxBufferSize=“2147483647″ maxReceivedMessageSize=“2147483647″> <security mode=“None” /> </binding> </basicHttpBinding> <customBinding> <binding name=“BasicHttpBinding_IService1″> <textMessageEncoding messageVersion=“Default” writeEncoding=“utf-8″ /> <httpTransport maxReceivedMessageSize=“2147483647″ maxBufferSize=“2147483647″ /> </binding> </customBinding> </bindings> <client> <endpoint address=“http://localhost:44121/Service1.svc” binding=“basicHttpBinding” bindingConfiguration=“BasicHttpBinding_IService11″ contract=“localService.IService1″ name=“BasicHttpBinding_IService1″ /> </client> </system.serviceModel>
wcf大文件上传配置详解源码下载:http://pan.baidu.com/share/link?shareid=132910&uk=3372720248
原文地址: http://www.uol123.com/2012/11/26/wcf%e5%a4%a7%e6%96%87%e4%bb%b6%e4%b8%8a%e4%bc%a0%e9%85%8d%e7%bd%ae%e8%af%a6%e8%a7%a3.html | 数据库之家
相关文章推荐
- WCF配置文件详解(一)
- WCF配置文件详解
- WCF配置文件详解
- FastDFS的配置、部署与API使用解读(8)FastDFS多种文件上传接口详解
- FastDFS的配置、部署与API使用解读(8)FastDFS多种文件上传接口详解
- WCF配置文件详解,多服务配置
- wcf配置文件详解
- wcf文件上传时碰到的配置问题
- struts.xml配置文件上传文件类型的详解
- 转载:FastDFS的配置、部署与API使用解读(8)FastDFS多种文件上传接口详解
- jquery.uploadify上传文件配置详解(asp.net mvc)
- jquery.uploadify上传文件配置详解(asp.net mvc)
- FastDFS的配置、部署与API使用解读(8)FastDFS多种文件上传接口详解
- WCF配置文件详解
- Silverlight+WCF文件上传,含分段大小调节(WCF 16KB配置)、压缩Buffer调节、速度指示、批量等
- WCF配置文件详解
- WCF配置文件详解
- FastDFS的配置、部署与API使用解读(8)FastDFS多种文件上传接口详解
- WCF上传大文件配置
- FastDFS的配置、部署与API使用解读(8)FastDFS多种文件上传接口详解