ServiceDescriptionとは? わかりやすく解説

ServiceDescription クラス

XML Web サービスの記述に必要な名前空間、要素、および属性を完全に備えた、有効な Web サービス記述言語 (WSDL: Web Services Description Language) ドキュメント ファイルを作成する方法およびフォーマット方法を提供します。このクラスは継承できません。

名前空間: System.Web.Services.Description
アセンブリ: System.Web.Services (system.web.services.dll 内)
構文構文

Public NotInheritable Class
 ServiceDescription
    Inherits NamedItem
Dim instance As ServiceDescription
public sealed class ServiceDescription : NamedItem
public ref class ServiceDescription sealed
 : public NamedItem
public final class ServiceDescription extends
 NamedItem
public final class ServiceDescription extends
 NamedItem
解説解説
使用例使用例

ServiceDescription クラスのインスタンスを作成する方法の例を次に示します。

' Obtain the ServiceDescription of existing Wsdl.
Dim myDescription As ServiceDescription = ServiceDescription.Read("MyWsdl_VB.wsdl")
' Remove the Binding from the Binding Collection of ServiceDescription.
Dim myBindingCollection As BindingCollection
 = myDescription.Bindings
myBindingCollection.Remove(myBindingCollection(0))

' Form a new Binding.
Dim myBinding As New Binding()
myBinding.Name = "Service1Soap"
Dim myXmlQualifiedName As New
 XmlQualifiedName("s0:Service1Soap")
myBinding.Type = myXmlQualifiedName

Dim mySoapBinding As New
 SoapBinding()
mySoapBinding.Transport = "http://schemas.xmlsoap.org/soap/http"
mySoapBinding.Style = SoapBindingStyle.Document

Dim addOperationBinding As OperationBinding
 = CreateOperationBinding("Add", _
                                             myDescription.TargetNamespace)
myBinding.Operations.Add(addOperationBinding)
myBinding.Extensions.Add(mySoapBinding)

' Add the Binding to the ServiceDescription.
myDescription.Bindings.Add(myBinding)
myDescription.Write("MyOutWsdl.wsdl")
// Obtain the ServiceDescription of existing Wsdl.
ServiceDescription myDescription = ServiceDescription.Read("MyWsdl_CS.wsdl");
// Remove the Binding from the Binding Collection of ServiceDescription.
BindingCollection myBindingCollection = myDescription.Bindings;
myBindingCollection.Remove(myBindingCollection[0]);

// Form a new Binding.
Binding myBinding = new Binding();
myBinding.Name = "Service1Soap";
XmlQualifiedName myXmlQualifiedName = 
                     new XmlQualifiedName("s0:Service1Soap");
myBinding.Type = myXmlQualifiedName;

SoapBinding mySoapBinding = new SoapBinding();
mySoapBinding.Transport = "http://schemas.xmlsoap.org/soap/http";
mySoapBinding.Style = SoapBindingStyle.Document;

OperationBinding addOperationBinding = 
       CreateOperationBinding("Add",myDescription.TargetNamespace);
myBinding.Operations.Add(addOperationBinding);
myBinding.Extensions.Add(mySoapBinding);

// Add the Binding to the ServiceDescription.
myDescription.Bindings.Add(myBinding);
myDescription.Write("MyOutWsdl.wsdl");
// Obtain the ServiceDescription of existing Wsdl.
ServiceDescription^ myDescription = ServiceDescription::Read( "MyWsdl_CS.wsdl"
 );

// Remove the Binding from the Binding Collection of ServiceDescription.
BindingCollection^ myBindingCollection = myDescription->Bindings;
myBindingCollection->Remove( myBindingCollection[ 0 ] );

// Form a new Binding.
Binding^ myBinding = gcnew Binding;
myBinding->Name = "Service1Soap";
XmlQualifiedName^ myXmlQualifiedName = gcnew XmlQualifiedName( "s0:Service1Soap"
 );
myBinding->Type = myXmlQualifiedName;
SoapBinding^ mySoapBinding = gcnew SoapBinding;
mySoapBinding->Transport = "http://schemas.xmlsoap.org/soap/http";
mySoapBinding->Style = SoapBindingStyle::Document;
OperationBinding^ addOperationBinding = CreateOperationBinding( "Add",
 myDescription->TargetNamespace );
myBinding->Operations->Add( addOperationBinding );
myBinding->Extensions->Add( mySoapBinding );

// Add the Binding to the ServiceDescription.
myDescription->Bindings->Add( myBinding );
myDescription->Write( "MyOutWsdl.wsdl" );
// Obtain the ServiceDescription of existing Wsdl.
ServiceDescription myDescription = ServiceDescription.
    Read("MyWsdl_JSL.wsdl");
// Remove the Binding from the Binding Collection of 
// ServiceDescription.
BindingCollection myBindingCollection = myDescription.
    get_Bindings();
myBindingCollection.Remove(myBindingCollection.get_Item(0));
// Form a new Binding.
Binding myBinding = new Binding();
myBinding.set_Name("Service1Soap");
XmlQualifiedName myXmlQualifiedName = new 
    XmlQualifiedName("s0:Service1Soap");
myBinding.set_Type(myXmlQualifiedName);

SoapBinding mySoapBinding = new SoapBinding();
mySoapBinding.set_Transport("http://schemas.xmlsoap.org/soap/http");
mySoapBinding.set_Style(SoapBindingStyle.Document);

OperationBinding addOperationBinding = CreateOperationBinding("Add",
    myDescription.get_TargetNamespace());
myBinding.get_Operations().Add(addOperationBinding);
myBinding.get_Extensions().Add(mySoapBinding);
// Add the Binding to the ServiceDescription.
myDescription.get_Bindings().Add(myBinding);
myDescription.Write("MyOutWsdl.wsdl");
継承階層継承階層
System.Object
   System.Web.Services.Description.DocumentableItem
     System.Web.Services.Description.NamedItem
      System.Web.Services.Description.ServiceDescription
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ServiceDescription メンバ
System.Web.Services.Description 名前空間

ServiceDescription コンストラクタ

ServiceDescription クラスの新しいインスタンスを初期化します。

名前空間: System.Web.Services.Description
アセンブリ: System.Web.Services (system.web.services.dll 内)
構文構文

Dim instance As New ServiceDescription
public ServiceDescription ()
public:
ServiceDescription ()
public ServiceDescription ()
public function ServiceDescription ()
プラットフォームプラットフォーム
バージョン情報バージョン情報

.NET Framework

サポート対象 : 2.0、1.1、1.0
参照参照

関連項目

ServiceDescription クラス
ServiceDescription メンバ
System.Web.Services.Description 名前空間

ServiceDescription フィールド


パブリック フィールドパブリック フィールド

  名前 説明
パブリック フィールド Namespace ServiceDescription クラスが定義されている XML 名前空間 ("http://schemas.xmlsoap.org/wsdl/")。このフィールドは定数です。
参照参照

関連項目

ServiceDescription クラス
System.Web.Services.Description 名前空間

ServiceDescription プロパティ


パブリック プロパティパブリック プロパティ

  名前 説明
パブリック プロパティ Bindings ServiceDescription に格納されている Binding 要素のコレクションを取得します。
パブリック プロパティ Documentation  DocumentableItem のインスタンスのテキスト ドキュメントを取得または設定します。 ( DocumentableItem から継承されます。)
パブリック プロパティ DocumentationElement  DocumentableItem のドキュメント要素を取得または設定します。 ( DocumentableItem から継承されます。)
パブリック プロパティ ExtensibleAttributes  Web Services Interoperability (WS-I) Basic Profile 1.1 に準拠する WSDL の属性の拡張機能を表す XmlAttribute 型の配列を取得または設定します。 ( DocumentableItem から継承されます。)
パブリック プロパティ Extensions オーバーライドされます。 ServiceDescription に格納されている機能拡張要素のコレクションを取得します。
パブリック プロパティ Imports ServiceDescription に格納されている Import 要素のコレクションを取得します。
パブリック プロパティ Messages ServiceDescription に格納されている Message 要素のコレクションを取得します。
パブリック プロパティ Name  項目の名前を取得または設定します。 ( NamedItem から継承されます。)
パブリック プロパティ Namespaces  ServiceDescription オブジェクトが生成されるときに名前空間プレフィックスと名前空間を保持するために使用する、名前空間プレフィックスと名前空間のディクショナリを取得または設定します。 ( DocumentableItem から継承されます。)
パブリック プロパティ ServiceDescriptions ServiceDescription がメンバとして含まれている ServiceDescriptionCollection インスタンスを取得します。
パブリック プロパティ Services ServiceDescription に格納されている Service インスタンスのコレクションを取得します。
パブリック プロパティ TargetNamespace Web サービス記述言語 (WSDL :Web Services Description Language) ファイルを囲む descriptions タグの XML targetNamespace 属性を取得または設定します。
パブリック プロパティ Types ServiceDescription に格納された Types を取得または設定します。
パブリック プロパティ ValidationWarnings Read(Stream,Boolean)、Read(TextReader,Boolean)、Read(String,Boolean)、または Read(XmlReader,Boolean) を、true に設定した validate パラメータを指定して呼び出したときに生成された検証の警告を格納する StringCollection を取得します。
参照参照

関連項目

ServiceDescription クラス
System.Web.Services.Description 名前空間

ServiceDescription メソッド


パブリック メソッドパブリック メソッド

プロテクト メソッドプロテクト メソッド
参照参照

関連項目

ServiceDescription クラス
System.Web.Services.Description 名前空間

ServiceDescription メンバ

XML Web サービスの記述に必要な名前空間、要素、および属性を完全に備えた、有効な Web サービス記述言語 (WSDL: Web Services Description Language) ドキュメント ファイルを作成する方法およびフォーマット方法を提供します。このクラスは継承できません。

ServiceDescription データ型で公開されるメンバを以下の表に示します。


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド ServiceDescription  
パブリック フィールドパブリック フィールド
  名前 説明
パブリック フィールド Namespace ServiceDescription クラスが定義されている XML 名前空間 ("http://schemas.xmlsoap.org/wsdl/")。このフィールドは定数です。
パブリック プロパティパブリック プロパティ
  名前 説明
パブリック プロパティ Bindings ServiceDescription に格納されている Binding 要素のコレクションを取得します。
パブリック プロパティ Documentation  DocumentableItem のインスタンスのテキスト ドキュメントを取得または設定します。(DocumentableItem から継承されます。)
パブリック プロパティ DocumentationElement  DocumentableItem のドキュメント要素を取得または設定します。(DocumentableItem から継承されます。)
パブリック プロパティ ExtensibleAttributes  Web Services Interoperability (WS-I) Basic Profile 1.1 に準拠する WSDL の属性の拡張機能を表す XmlAttribute 型の配列を取得または設定します。(DocumentableItem から継承されます。)
パブリック プロパティ Extensions オーバーライドされます。 ServiceDescription に格納されている機能拡張要素のコレクションを取得します。
パブリック プロパティ Imports ServiceDescription に格納されている Import 要素のコレクションを取得します。
パブリック プロパティ Messages ServiceDescription に格納されている Message 要素のコレクションを取得します。
パブリック プロパティ Name  項目の名前を取得または設定します。(NamedItem から継承されます。)
パブリック プロパティ Namespaces  ServiceDescription オブジェクトが生成されるときに名前空間プレフィックスと名前空間を保持するために使用する、名前空間プレフィックスと名前空間のディクショナリを取得または設定します。(DocumentableItem から継承されます。)
パブリック プロパティ ServiceDescriptions ServiceDescription がメンバとして含まれている ServiceDescriptionCollection インスタンスを取得します。
パブリック プロパティ Services ServiceDescription に格納されている Service インスタンスのコレクションを取得します。
パブリック プロパティ TargetNamespace Web サービス記述言語 (WSDL :Web Services Description Language) ファイルを囲む descriptions タグの XML targetNamespace 属性を取得または設定します。
パブリック プロパティ Types ServiceDescription に格納された Types を取得または設定します。
パブリック プロパティ ValidationWarnings Read(Stream,Boolean)、Read(TextReader,Boolean)、Read(String,Boolean)、または Read(XmlReader,Boolean) を、true に設定した validate パラメータを指定して呼び出したときに生成された検証の警告を格納する StringCollection を取得します。
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

ServiceDescription クラス
System.Web.Services.Description 名前空間



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「ServiceDescription」の関連用語

ServiceDescriptionのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



ServiceDescriptionのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS