您的位置:首页 > 其它

一个通讯协议的配置文件

2012-07-09 22:13 411 查看
SOAP协议的配置文件,不知有啥具体含义。

此协议运用经常出现问题,不知是否配置文件有问题?利用线程轮询时老是死机与报错。

服务器程序是用C++,客户端是利C#。

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<services>
<service behaviorConfiguration="serviceBehavior" name="Staubli.Wcf.DebugService.DebugService">
<endpoint address="" binding="basicHttpBinding" contract="Staubli.Wcf.DebugService.IDebugService" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:5656" />
</baseAddresses>
<timeouts closeTimeout="00:00:01" />
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="serviceBehavior">
<serviceMetadata httpGetEnabled="false" httpGetUrl="" />
</behavior>
</serviceBehaviors>
</behaviors>

<bindings>
<basicHttpBinding>
<binding name="CS8ServerV0BindingConfig"
closeTimeout="00:00:10" openTimeout="00:00:10" receiveTimeout="00:10:00" sendTimeout="00:00:10"
bypassProxyOnLocal="true" useDefaultWebProxy="false"
maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
allowCookies="false" hostNameComparisonMode="StrongWildcard">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None" realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>

<customBinding>
<binding name="MtomBindingConfig">
<mtomMessageEncoding maxReadPoolSize="64" maxWritePoolSize="16" messageVersion="Soap12" />
<httpTransport maxBufferPoolSize="52428800"
bypassProxyOnLocal="true" useDefaultWebProxy="false"
maxReceivedMessageSize="6553600" allowCookies="false" authenticationScheme="Anonymous"
keepAliveEnabled="true" maxBufferSize="6553600" proxyAuthenticationScheme="Anonymous"
transferMode="Buffered" unsafeConnectionNtlmAuthentication="false" />
</binding>
</customBinding>
</bindings>

<client>
<endpoint contract="Staubli.Robotics.Soap.Proxies.ServerV0.CS8ServerV0PortType" name="CS8ServerV0"
binding="basicHttpBinding" bindingConfiguration="CS8ServerV0BindingConfig" />

<endpoint contract="Staubli.Robotics.Soap.Proxies.ServerV1.CS8ServerV1PortType" name="CS8ServerV1"
binding="customBinding" bindingConfiguration="MtomBindingConfig" />

<endpoint contract="Staubli.Robotics.Soap.Proxies.ServerV2.CS8ServerV2PortType" name="CS8ServerV2"
binding="customBinding" bindingConfiguration="MtomBindingConfig" />

<endpoint contract="Staubli.Robotics.Soap.Proxies.ServerV3.CS8ServerV3PortType" name="CS8ServerV3"
binding="customBinding" bindingConfiguration="MtomBindingConfig" />
</client>
</system.serviceModel>
</configuration>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: