<serviceDescriptionFormatExtensionTypes> 的 <add> 元素

添加指定的服务说明格式扩展 (SDFE) 类,该类定义如何扩展为 Web 服务生成的服务说明(WSDL 文档)。

<configuration>

  <system.web>

    <webServices> 元素

      <serviceDescriptionFormatExtensionTypes> 元素

        <serviceDescriptionFormatExtensionTypes> 的 <add> 元素

<add type="service description format extension type"/>

属性和元素

以下几节描述了属性、子元素和父元素。

属性

属性 说明

type

必需的属性。

指定要添加的 SDFE 类。

子元素

无。

父元素

元素 说明

configuration

公共语言运行库和 .NET Framework 应用程序所使用的每个配置文件中的根元素。

serviceDescriptionFormatExtensionTypes

指定用来扩展为 Web 服务生成的 WSDL 文档的服务说明格式扩展 (SDFE) 类。 SDFE 提供了一种描述 SOAP 扩展的方法。

system.web

为 ASP.NET 配置节指定根元素。

webServices

控制使用 ASP.NET 部署的 Web 服务的设置以及运行在 .NET Framework 上的 Web 服务客户端的设置。

示例

下面的示例添加 SDFE 类。

<configuration>
   <system.web>
      <webServices>
         <serviceDescriptionFormatExtensionType>
            <add type=NameOfClass"/>
         </serviceDescriptionFormatExtensionType>
      </webServices>
   </system.web>
</configuration>

请参见

任务

演练:自定义服务说明和代理类的生成

参考

<webServices> 元素
<serviceDescriptionFormatExtensionTypes> 元素
ServiceDescriptionFormatExtension

其他资源

ASP.NET Settings Schema
使用 ASP.NET 创建的 XML Web Services 以及 XML Web Services 客户端

Footer image

版权所有 (C) 2007 Microsoft Corporation。保留所有权利。