HttpBinding クラス
XML Web サービス内の Binding に追加された機能拡張要素を表します。このクラスは継承できません。
この型のすべてのメンバの一覧については、HttpBinding メンバ を参照してください。
System.Object
System.Web.Services.Description.ServiceDescriptionFormatExtension
System.Web.Services.Description.HttpBinding
NotInheritable Public Class HttpBinding
Inherits ServiceDescriptionFormatExtension
[C#]
public sealed class HttpBinding : ServiceDescriptionFormatExtension
[C++]
public __gc __sealed class HttpBinding : public
ServiceDescriptionFormatExtension
[JScript]
public class HttpBinding extends ServiceDescriptionFormatExtension
スレッドセーフ
この型の public static (Visual Basicでは Shared) のすべてのメンバは、マルチスレッド操作で安全に使用できます。インスタンスのメンバの場合は、スレッドセーフであるとは限りません。
解説
このクラスを機能拡張要素として使用して、情報を HTTP によって渡すことを指定します。XML Web サービスのプロトコルの指定の詳細については、「 ASP.NET を使用した XML Web サービスの作成 」を参照してください。WSDL (Web Services Description Language) の詳細については、http://www.w3.org/TR/wsdl/ の仕様を参照してください。
使用例
[Visual Basic, C#, C++] HttpBinding クラスの一般的な使用例を次に示します。
' Create the 'HttpBinding' object.
Dim myHttpBinding As New HttpBinding()
myHttpBinding.Verb = "POST"
' Add the 'HttpBinding' to the 'Binding'.
myBinding.Extensions.Add(myHttpBinding)
[C#]
// Create the 'HttpBinding' object.
HttpBinding myHttpBinding = new HttpBinding();
myHttpBinding.Verb="POST";
// Add the 'HttpBinding' to the 'Binding'.
myBinding.Extensions.Add(myHttpBinding);
[C++]
// Create the 'HttpBinding' object.
HttpBinding* myHttpBinding = new HttpBinding();
myHttpBinding->Verb=S"POST";
// Add the 'HttpBinding' to the 'Binding'.
myBinding->Extensions->Add(myHttpBinding);
[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン をクリックします。
必要条件
名前空間: System.Web.Services.Description
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
アセンブリ: System.Web.Services (System.Web.Services.dll 内)