我正在尝试更改 wcf Web 服务中的 wsdl。我发现这篇文章http://blogs.msdn.com/b/kaevans/archive/2005/11/16/493496.aspx但不幸的是我不能让它工作。
这是网络配置
<configuration>
<system.serviceModel>
<services>
<service name="Microsoft.ServiceModel.Samples.CalculatorService" behaviorConfiguration="MyServiceTypeBehaviors" >
<endpoint contract="Microsoft.ServiceModel.Samples.ICalculator" binding="mexHttpBinding" address="mex" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="MyServiceTypeBehaviors" >
<serviceMetadata httpGetEnabled="true" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
<system.web>
<webServices>
<soapExtensionReflectorTypes>
<add type="Msdn.Web.Services.Samples.HttpsReflector, App_Code"/>
</soapExtensionReflectorTypes>
</webServices>
</system.web>
</configuration>