我正在尝试在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>