如何在WCF中使用SoapExtensionReflector?

时间:2012-09-05 19:40:18

标签: wcf

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

其他链接http://msdn.microsoft.com/ru-ru/library/ms733766.aspx

0 个答案:

没有答案