【发布时间】:2016-10-21 15:06:52
【问题描述】:
我有一个使用 Visual Studio 创建的 WCF 服务。生成的 WSDL 有一部分我不想要,但是不知道从哪里来的。
-<wsdl:service name="AdfsService">
-<wsdl:port name="CustomBinding_IAdfsService" binding="tns:CustomBinding_IAdfsService">
<soap12:address location="https://localhost/AdCustomerService/AdfsService.svc"/>
-<wsa10:EndpointReference>
<wsa10:Address>https://localhost/AdCustomerService/AdfsService.svc</wsa10:Address>
</wsa10:EndpointReference>
</wsdl:port>
</wsdl:service>
我需要删除的是:
-<wsa10:EndpointReference>
<wsa10:Address>https://localhost/AdCustomerService/AdfsService.svc</wsa10:Address>
</wsa10:EndpointReference>
这是我的网络配置:
<behaviors>
<serviceBehaviors>
<behavior>
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
<customBinding>
<binding name="CustomTransportSecurity">
<transactionFlow />
<textMessageEncoding />
<httpsTransport />
</binding>
</customBinding>
</bindings>
<protocolMapping>
<add binding="basicHttpsBinding" scheme="https"/>
</protocolMapping>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="false"/>
<services>
<service name="webservices.portalx.AdfsService">
<endpoint address="" contract="webservices.portalx.IAdfsService"
bindingNamespace="webservices.portalx" binding="customBinding"
bindingConfiguration ="CustomTransportSecurity"/>
<endpoint address="mex" contract="IMetadataExchange" binding="mexHttpsBinding"/>
</service>
</services>
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true">
<remove name="ApplicationInsightsWebTracking"/>
<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web"
preCondition="managedHandler"/>
</modules>
<directoryBrowse enabled="true"/>
<validation validateIntegratedModeConfiguration="false"/>
</system.webServer>
谁能指出我要寻找的方向?我尝试用谷歌搜索,但没有找到任何有用的链接。
【问题讨论】:
-
您尝试过发布的解决方案吗?
标签: c# web-services wcf wsdl