WebServiceBindingAttribute コンストラクタとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > WebServiceBindingAttribute コンストラクタの意味・解説 

WebServiceBindingAttribute コンストラクタ (String)

XML Web サービス メソッド実装しているバインディングの名前を設定する WebServiceBindingAttribute クラス新しインスタンス初期化します。

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

Dim name As String

Dim instance As New WebServiceBindingAttribute(name)
public WebServiceBindingAttribute (
    string name
)
public:
WebServiceBindingAttribute (
    String^ name
)
public WebServiceBindingAttribute (
    String name
)
public function WebServiceBindingAttribute
 (
    name : String
)

パラメータ

name

XML Web サービス メソッド操作実装する対象となるバインディングの名前。Name プロパティ設定します

解説解説
使用例使用例

BindingSample XML Web サービス定義されている LocalBinding という名前のバインディング指定する例を次に示します

' Binding is defined in this XML Web service and uses the default namespace.
<WebServiceBinding(Name := "LocalBinding")>
 _
Public Class BindingSample    
    
    <SoapDocumentMethod(Binding := "LocalBinding"),
 WebMethod()> _
    Public Function LocalBindingMethod() As
 String
    
        Return "Member of binding defined in
 this XML Web service and member of the default namespace"
    End Function 'LocalBindingMethod
    
End Class
   
// Binding is defined in this XML Web service and uses the default namespace.
 [ WebServiceBinding(Name="LocalBinding")]
 public class BindingSample  {

      [ SoapDocumentMethod(Binding="LocalBinding")]
      [ WebMethod() ]
      public string LocalBindingMethod() {
               return "Member of binding defined in
 this XML Web service and member of the default
 namespace";
      }

 }
   
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
WebServiceBindingAttribute クラス
WebServiceBindingAttribute メンバ
System.Web.Services 名前空間
Name
SoapDocumentMethodAttribute
SoapRpcMethodAttribute

WebServiceBindingAttribute コンストラクタ (String, String)

WebServiceBindingAttribute クラス新しインスタンス初期化します。

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

Dim name As String
Dim ns As String

Dim instance As New WebServiceBindingAttribute(name,
 ns)
public WebServiceBindingAttribute (
    string name,
    string ns
)
public:
WebServiceBindingAttribute (
    String^ name, 
    String^ ns
)
public WebServiceBindingAttribute (
    String name, 
    String ns
)
public function WebServiceBindingAttribute
 (
    name : String, 
    ns : String
)

パラメータ

name

XML Web サービス メソッド操作実装する対象となるバインディングの名前。Name プロパティ設定します

ns

バインディング関連付けられた名前空間Namespace プロパティ設定します

解説解説
使用例使用例

http://www.contoso.com/MyBinding 名前空間メンバであり、BindingSample XML Web サービス定義されている、LocalBindingNonDefaultNamespace という名前のバインディング指定する例を次に示します

' Binding is defined in this XML Web service, but it is not a part of
 the default namespace.
<WebServiceBinding(Name := "LocalBindingNonDefaultNamespace",
 _
    Namespace := "http://www.contoso.com/MyBinding")>
 _
Public Class BindingSample   
    
    <SoapDocumentMethod(Binding := "LocalBindingNonDefaultNamespace"),
 _
        WebMethod()> _
    Public Function LocalBindingNonDefaultNamespaceMethod()
 As String
        
        Return "Member of binding defined in
 this XML Web service, but a part " & _
               "of a different namespace"
    End Function
End Class
 
// Binding is defined in this XML Web service, but it is not a part
 of the default namespace.
 [ WebServiceBinding(Name="LocalBindingNonDefaultNamespace",
 Namespace="http://www.contoso.com/MyBinding")]
 public class BindingSample  {

      [ SoapDocumentMethod(Binding="LocalBindingNonDefaultNamespace")]
 
      [ WebMethod() ]
      public string LocalBindingNonDefaultNamespaceMethod()
 {
              return "Member of binding defined in
 this XML Web service, but a part of a different namespace";
      }
 }
 
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
WebServiceBindingAttribute クラス
WebServiceBindingAttribute メンバ
System.Web.Services 名前空間
Name
Namespace
SoapDocumentMethodAttribute
SoapRpcMethodAttribute

WebServiceBindingAttribute コンストラクタ (String, String, String)

WebServiceBindingAttribute クラス新しインスタンス初期化します。

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

解説解説
使用例使用例

http://www.contoso.com/MyBinding 名前空間メンバであり、http://www.contoso.com/MyService.asmx?wsdl定義されている、RemoteBinding という名前のバインディング指定する例を次に示します

' Binding is defined on a remote server, but this XML Web service implements
' at least one operation in that binding.
<WebServiceBinding(Name := "RemoteBinding", _
    Namespace := "http://www.contoso.com/MyBinding",
 _
    Location := "http://www.contoso.com/MyService.asmx?wsdl")>
 _
Public Class BindingSample    
    
    <SoapDocumentMethod(Binding := "RemoteBinding"),
 WebMethod()> _
    Public Function RemoteBindingMethod() As
 String
        
        Return "Member of a binding defined
 on another server"
    End Function
End Class
 
// Binding is defined on a remote server, but this XML Web service implements
// at least one operation in that binding.
 [ WebServiceBinding(Name="RemoteBinding", 
              Namespace="http://www.contoso.com/MyBinding"
,
             Location="http://www.contoso.com/MyService.asmx?wsdl"
 )]
 public class BindingSample  {

     [ SoapDocumentMethod(Binding="RemoteBinding")] 
     [ WebMethod() ]
      public string RemoteBindingMethod() {
              return "Member of a binding defined on another
 server";
      }
 }
 
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
WebServiceBindingAttribute クラス
WebServiceBindingAttribute メンバ
System.Web.Services 名前空間
Location
Name
Namespace
SoapDocumentMethodAttribute
SoapRpcMethodAttribute

WebServiceBindingAttribute コンストラクタ

WebServiceBindingAttribute クラス新しインスタンス初期化します。
オーバーロードの一覧オーバーロードの一覧

名前 説明
WebServiceBindingAttribute () WebServiceBindingAttribute クラス新しインスタンス初期化します。

.NET Compact Framework によってサポートされています。

WebServiceBindingAttribute (String) XML Web サービス メソッド実装しているバインディングの名前を設定する WebServiceBindingAttribute クラス新しインスタンス初期化します。

.NET Compact Framework によってサポートされています。

WebServiceBindingAttribute (String, String) WebServiceBindingAttribute クラス新しインスタンス初期化します。

.NET Compact Framework によってサポートされています。

WebServiceBindingAttribute (String, String, String) WebServiceBindingAttribute クラス新しインスタンス初期化します。

.NET Compact Framework によってサポートされています。

参照参照

関連項目

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

WebServiceBindingAttribute コンストラクタ ()

WebServiceBindingAttribute クラス新しインスタンス初期化します。

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

Dim instance As New WebServiceBindingAttribute
public WebServiceBindingAttribute ()
public:
WebServiceBindingAttribute ()
public WebServiceBindingAttribute ()
public function WebServiceBindingAttribute
 ()
使用例使用例
' Binding is defined on a remote server, but this XML Web service implements
 at
' least one operation in that binding.
<WebServiceBinding(Name := "RemoteBinding", _
    Namespace := "http://www.contoso.com/MyBinding",
 _
    Location := "http://www.contoso.com/MyService.asmx?wsdl")>
 _
Public Class BindingSample
        
    <SoapDocumentMethod(Binding := "RemoteBinding"),
 WebMethod()> _
    Public Function RemoteBindingMethod() As
 String
        Return "Member of a binding defined
 on another server"
    End Function
End Class

// Binding is defined on a remote server, but this XML Web service 
// implements at least one operation in that binding.
[ WebServiceBinding(Name="RemoteBinding",
    Namespace="http://www.contoso.com/MyBinding",
    Location="http://www.contoso.com/MyService.asmx?wsdl")]
public class BindingSample  
{
    [ SoapDocumentMethod(Binding="RemoteBinding")] 
    [ WebMethod() ]
    public string RemoteBindingMethod() 
    {
        return "Member of a binding defined on another server";
    }
}

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
WebServiceBindingAttribute クラス
WebServiceBindingAttribute メンバ
System.Web.Services 名前空間



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

辞書ショートカット

すべての辞書の索引

「WebServiceBindingAttribute コンストラクタ」の関連用語

WebServiceBindingAttribute コンストラクタのお隣キーワード
検索ランキング

   

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



WebServiceBindingAttribute コンストラクタのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS