Share via


<serviceDescriptionFormatExtensionTypes> 的 <add> 元素

本主题专门介绍一项旧有技术。现在应通过使用以下链接来创建 XML Web 服务和 XML Web 服务客户端: Windows Communication Foundation.

添加指定的服务说明格式扩展 (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 客户端