WCF Binding实例
来源:互联网 发布:java积分商城系统源码 编辑:程序博客网 时间:2024/05/21 08:39
BasicHttpBinding
<?xml version="1.0"?><configuration> <system.web> <httpRuntime maxRequestLength="2097151" /> </system.web> <system.serviceModel> <behaviors> <endpointBehaviors> <behavior name="metadataBehavior"> <dataContractSerializer maxItemsInObjectGraph="2147483647"/> </behavior> </endpointBehaviors> </behaviors> <bindings> <basicHttpBinding> <binding name="basicHttpBinding_A" receiveTimeout="00:10:00" sendTimeout="00:10:00" openTimeout="00:10:00" closeTimeout="00:10:00" maxReceivedMessageSize="65536" maxBufferSize="65536" maxBufferPoolSize="524288" transferMode="Buffered" messageEncoding="Text" textEncoding="utf-8" bypassProxyOnLocal="false" useDefaultWebProxy="true" hostNameComparisonMode="StrongWildcard"> <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxNameTableCharCount="2147483647" maxBytesPerRead="2147483647" /> <security mode="None" /> <!--None、Transport、Message、TransportWithMessageCredential--> </binding> </basicHttpBinding> </bindings> <client> <endpoint address="" binding="basicHttpBinding" bindingConfiguration="basicHttpBinding_A" contract="契约地址" behaviorConfiguration="metadataBehavior" /> </client> </system.serviceModel></configuration>
WSHttpBinding
<system.serviceModel> <behaviors> <endpointBehaviors> <behavior name="metadataBehavior"> <dataContractSerializer maxItemsInObjectGraph="2147483647"/> </behavior> </endpointBehaviors> </behaviors> <bindings> <wsHttpBinding> <binding name="WSHttpBinding_A" closeTimeout="00:55:00" openTimeout="00:55:00" receiveTimeout="00:55:00" sendTimeout="00:55:00" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" useDefaultWebProxy="false" allowCookies="false" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"> <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" /> <security mode="Transport"><!--None、Transport、Message、TransportWithMessageCredential--> <transport clientCredentialType="Windows" /><!--None、Basic、Digest、Ntlm、Windows、Certificate--> <message clientCredentialType="Windows"/><!--None、Windows、UserName、Certificate、IssuedToken--> </security> </binding> </wsHttpBinding> </bindings> <client> <endpoint address="https://localhost:444/soap12" behaviorConfiguration="metadataBehavior" binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_ISyncReply" contract="ServiceReference1.ISyncReply" name="WSHttpBinding_ISyncReply" /> </client></system.serviceModel>
CustomBinding
<?xml version="1.0" encoding="utf-8"?><configuration> <system.serviceModel> <bindings> <customBinding> <binding name="WSHttpBinding_IOneWay" > <textMessageEncoding messageVersion="Soap12"> <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" /> </textMessageEncoding> <httpsTransport maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647" /> </binding> <binding name="WSHttpBinding_ISyncReply"> <textMessageEncoding messageVersion="Soap12"> <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" /> </textMessageEncoding> <httpsTransport maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647" /> </binding> </customBinding> </bindings> <client> <endpoint address="https://localhost:444/soap12" binding="customBinding" bindingConfiguration="WSHttpBinding_IOneWay" contract="I2WebService.IOneWay" name="WSHttpBinding_IOneWay" /> <endpoint address="https://localhost:444/soap12" binding="customBinding" bindingConfiguration="WSHttpBinding_ISyncReply" contract="I2WebService.ISyncReply" name="WSHttpBinding_ISyncReply" /> </client> </system.serviceModel></configuration>
0 0
- WCF Binding实例
- WCF-Binding
- WCF-Binding
- WCF绑定(Binding)
- [WCF学习笔记] Binding
- WCF中的Binding方式
- WCF之Binding详解
- WCF Service Binding Explained
- WCF之Binding
- WCF Note5(Binding)
- WCF Binding描述
- WCF之Binding
- wcf中binding用法
- WCF—Binding
- WCF的Binding
- WCF 绑定(Binding)
- WCF中Binding的选择
- WCF实例
- 获取指定月份最后一天
- c++标准库—命名空间std和头文件的演变
- 简单理解Socket
- 深刻理解Linux进程间通信(IPC)
- C++与Java比较之向上转型
- WCF Binding实例
- Java抽象类和接口
- python科学计算环境
- oc数组续
- IOS框架和服务
- Java整型有序数组遍历一次输出其中重复的值
- JSTL包重复报错java.lang.NoSuchFieldError: deferredExpression
- 浅谈ThreadPool 线程池
- js实现滑动条效果