作者:一诺千金2502859287 | 来源:互联网 | 2023-07-07 07:35
问题
绑定类型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>
最佳回答
<serviceDebug includeExceptionDetailInFaults="false" /> 去掉