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.01.11.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 名前空間



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「ServiceDescription」の関連用語

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

   

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



ServiceDescriptionのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS