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

OutputBinding クラス

XML Web サービスで使用する、出力メッセージのデータ形式とプロトコルの仕様のセットを提供します。このクラスは継承できません。

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

Public NotInheritable Class
 OutputBinding
    Inherits MessageBinding
Dim instance As OutputBinding
public sealed class OutputBinding : MessageBinding
public ref class OutputBinding sealed : public
 MessageBinding
public final class OutputBinding extends MessageBinding
public final class OutputBinding extends
 MessageBinding
解説解説

OutputBinding クラスは、<operation> 要素で囲まれた WSDL (Web Services Description Language) <output> 要素に対応します。さらに、この要素は OperationBinding クラスに対応します。WSDL の詳細については、http://www.w3.org/TR/wsdl/ の仕様を参照してください。

使用例使用例

OutputBinding クラスの一般的な使用例を次に示します。

' Used to create OperationBinding instances within 'Binding'.
Public Shared Function CreateOperationBinding(operation
 As String, _
   targetNamespace As String) As
 OperationBinding

   ' Create OperationBinding for operation.
   Dim myOperationBinding As New
 OperationBinding()
   myOperationBinding.Name = operation

   ' Create InputBinding for operation.
   Dim myInputBinding As New
 InputBinding()
   Dim mySoapBodyBinding As New
 SoapBodyBinding()
   mySoapBodyBinding.Use = SoapBindingUse.Literal
   myInputBinding.Extensions.Add(mySoapBodyBinding)
   ' Create OutputBinding for operation.
   Dim myOutputBinding As New
 OutputBinding()
   myOutputBinding.Extensions.Add(mySoapBodyBinding)

   ' Add InputBinding and OutputBinding to OperationBinding. 
   myOperationBinding.Input = myInputBinding
   myOperationBinding.Output = myOutputBinding

   ' Create an extensibility element for SoapOperationBinding.
   Dim mySoapOperationBinding As New
 SoapOperationBinding()
   mySoapOperationBinding.Style = SoapBindingStyle.Document
   mySoapOperationBinding.SoapAction = targetNamespace & operation

   ' Add the extensibility element SoapOperationBinding to OperationBinding.
   myOperationBinding.Extensions.Add(mySoapOperationBinding)
   Return myOperationBinding
End Function 'CreateOperationBinding

// Used to create OperationBinding instances within 'Binding'.
public static OperationBinding CreateOperationBinding(string
 operation,
   string targetNamespace)
{
   // Create OperationBinding for operation.
   OperationBinding myOperationBinding = new OperationBinding();
   myOperationBinding.Name = operation;
   // Create InputBinding for operation.
   InputBinding myInputBinding = new InputBinding();
   SoapBodyBinding mySoapBodyBinding = new SoapBodyBinding();
   mySoapBodyBinding.Use = SoapBindingUse.Literal;
   myInputBinding.Extensions.Add(mySoapBodyBinding);
   // Create OutputBinding for operation.
   OutputBinding myOutputBinding = new OutputBinding();
   myOutputBinding.Extensions.Add(mySoapBodyBinding);

   // Add InputBinding and OutputBinding to OperationBinding.
   myOperationBinding.Input = myInputBinding;
   myOperationBinding.Output = myOutputBinding;

   // Create an extensibility element for SoapOperationBinding.
   SoapOperationBinding mySoapOperationBinding = new SoapOperationBinding();
   mySoapOperationBinding.Style = SoapBindingStyle.Document;
   mySoapOperationBinding.SoapAction = targetNamespace + operation;

   // Add the extensibility element SoapOperationBinding to OperationBinding.
   myOperationBinding.Extensions.Add(mySoapOperationBinding);
   return myOperationBinding;
}
// Used to create OperationBinding instances within 'Binding'.
static OperationBinding^ CreateOperationBinding( String^ operation,
 String^ targetNamespace )
{
   // Create OperationBinding for operation.
   OperationBinding^ myOperationBinding = gcnew OperationBinding;
   myOperationBinding->Name = operation;

   // Create InputBinding for operation.
   InputBinding^ myInputBinding = gcnew InputBinding;
   SoapBodyBinding^ mySoapBodyBinding = gcnew SoapBodyBinding;
   mySoapBodyBinding->Use = SoapBindingUse::Literal;
   myInputBinding->Extensions->Add( mySoapBodyBinding );

   // Create OutputBinding for operation.
   OutputBinding^ myOutputBinding = gcnew OutputBinding;
   myOutputBinding->Extensions->Add( mySoapBodyBinding );

   // Add InputBinding and OutputBinding to OperationBinding.
   myOperationBinding->Input = myInputBinding;
   myOperationBinding->Output = myOutputBinding;

   // Create an extensibility element for SoapOperationBinding.
   SoapOperationBinding^ mySoapOperationBinding = gcnew SoapOperationBinding;
   mySoapOperationBinding->Style = SoapBindingStyle::Document;
   mySoapOperationBinding->SoapAction = String::Concat( targetNamespace, operation
 );

   // Add the extensibility element SoapOperationBinding to OperationBinding.
   myOperationBinding->Extensions->Add( mySoapOperationBinding );
   return myOperationBinding;
}
継承階層継承階層
System.Object
   System.Web.Services.Description.DocumentableItem
     System.Web.Services.Description.NamedItem
       System.Web.Services.Description.MessageBinding
        System.Web.Services.Description.OutputBinding
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
OutputBinding メンバ
System.Web.Services.Description 名前空間

OutputBinding コンストラクタ


OutputBinding プロパティ


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

  名前 説明
パブリック プロパティ Documentation  DocumentableItem のインスタンスのテキスト ドキュメントを取得または設定します。 ( DocumentableItem から継承されます。)
パブリック プロパティ DocumentationElement  DocumentableItem のドキュメント要素を取得または設定します。 ( DocumentableItem から継承されます。)
パブリック プロパティ ExtensibleAttributes  Web Services Interoperability (WS-I) Basic Profile 1.1 に準拠する WSDL の属性の拡張機能を表す XmlAttribute 型の配列を取得または設定します。 ( DocumentableItem から継承されます。)
パブリック プロパティ Extensions オーバーライドされます。 現在の OutputBinding に関連付けられている機能拡張要素のコレクションを取得します。
パブリック プロパティ Name  項目の名前を取得または設定します。 ( NamedItem から継承されます。)
パブリック プロパティ Namespaces  ServiceDescription オブジェクトが生成されるときに名前空間プレフィックスと名前空間を保持するために使用する、名前空間プレフィックスと名前空間のディクショナリを取得または設定します。 ( DocumentableItem から継承されます。)
パブリック プロパティ OperationBinding  現在の MessageBinding がメンバとして含まれている OperationBinding を取得します。 ( MessageBinding から継承されます。)
参照参照

関連項目

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

OutputBinding メソッド


OutputBinding メンバ

XML Web サービスで使用する、出力メッセージのデータ形式とプロトコルの仕様のセットを提供します。このクラスは継承できません。

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


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド OutputBinding  
パブリック プロパティパブリック プロパティ
  名前 説明
パブリック プロパティ Documentation  DocumentableItem のインスタンスのテキスト ドキュメントを取得または設定します。(DocumentableItem から継承されます。)
パブリック プロパティ DocumentationElement  DocumentableItem のドキュメント要素を取得または設定します。(DocumentableItem から継承されます。)
パブリック プロパティ ExtensibleAttributes  Web Services Interoperability (WS-I) Basic Profile 1.1 に準拠する WSDL の属性の拡張機能を表す XmlAttribute 型の配列を取得または設定します。(DocumentableItem から継承されます。)
パブリック プロパティ Extensions オーバーライドされます。 現在の OutputBinding に関連付けられている機能拡張要素のコレクションを取得します。
パブリック プロパティ Name  項目の名前を取得または設定します。(NamedItem から継承されます。)
パブリック プロパティ Namespaces  ServiceDescription オブジェクトが生成されるときに名前空間プレフィックスと名前空間を保持するために使用する、名前空間プレフィックスと名前空間のディクショナリを取得または設定します。(DocumentableItem から継承されます。)
パブリック プロパティ OperationBinding  現在の MessageBinding がメンバとして含まれている OperationBinding を取得します。(MessageBinding から継承されます。)
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

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



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

「OutputBinding」の関連用語

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

   

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



OutputBindingのページの著作権

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

©2026 GRAS Group, Inc.RSS