为了账号安全,请及时绑定邮箱和手机立即绑定

wcf的绑定

wcf的绑定

大话西游666 2018-12-07 03:34:44
绑定类型wsDualHttpBinding 为什么发布之后输入地址查看不到发布的元数据,页面是空白的页面? 哪里需要再设置一下嘛 1 <?xml version="1.0" encoding="utf-8" ?> 2 <configuration> 3 <system.serviceModel> 4 <bindings> 5 <wsDualHttpBinding> 6 <binding name="WSHttpBinding_OMSService" closeTimeout="00:01:00" 7 openTimeout="00:01:00" receiveTimeout="00:01:00" sendTimeout="00:01:00" 8 bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" 9 maxBufferPoolSize="524288" maxReceivedMessageSize="20000000" 10 messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"> 11 <readerQuotas maxDepth="32" maxStringContentLength="20000000" 12 maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /> 13 <reliableSession ordered="true" inactivityTimeout="00:40:00" /> 14 <security mode="Message"> 15 </security> 16 </binding> 17 </wsDualHttpBinding> 18 </bindings> 19 <behaviors> 20 <serviceBehaviors> 21 <behavior name="metadataBehavior"> 22 <serviceMetadata httpGetEnabled="true" httpGetUrl="http://127.0.0.1:1888/OMSService/Metadata" /> 23 <serviceDebug includeExceptionDetailInFaults="false" /> 24 <serviceThrottling maxConcurrentCalls="1000" maxConcurrentInstances="1000" maxConcurrentSessions="1000"/> 25 </behavior> 26 </serviceBehaviors> 27 </behaviors> 28 <services> 29 <service name="OMS.Server.Services.OMSService"> 30 <endpoint bindingConfiguration="WSHttpBinding_OMSService" address="http://127.0.0.1:1888/OMSService" binding="wsDualHttpBinding" contract="OMS.Server.Contracts.IOMSService"> 31 </endpoint> 32 </service> 33 </services> 34 </system.serviceModel> 35 </configuration>
查看完整描述

1 回答

?
撒科打诨

TA贡献1934条经验 获得超2个赞

  <serviceDebug includeExceptionDetailInFaults="false" /> 去掉
查看完整回答
反对 回复 2019-01-21
  • 1 回答
  • 0 关注
  • 291 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信