SoapDocumentMethodAttribute.Action プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > SoapDocumentMethodAttribute.Action プロパティの意味・解説 

SoapDocumentMethodAttribute.Action プロパティ

SOAP 要求SOAPAction HTTP ヘッダー フィールド取得または設定します

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

Dim instance As SoapDocumentMethodAttribute
Dim value As String

value = instance.Action

instance.Action = value
/** @property */
public String get_Action ()

/** @property */
public void set_Action (String value)

プロパティ
SOAP 要求SOAPAction HTTP ヘッダー フィールド既定値http://tempuri.org/MethodName です。MethodName は XML Web サービス メソッドの名前です。

解説解説
使用例使用例

Action プロパティhttp://www.contoso.com/GetUserName設定するコード例次に示します

<%@ WebService Language="VB" class="MyUser"
 %>

Imports System.Web.Services
Imports System.Web.Services.Protocols

Public Class MyUser
    Inherits WebService
        
    <SoapDocumentMethod(Action := "http://www.contoso.com/GetUserName")>
 _
    Public Function _
        GetUserName() As String
        
        Return User.Identity.Name
    End Function
End Class

<%@ WebService Language="C#" class="MyUser"
 %>
 
 using System.Web.Services;
 using System.Web.Services.Protocols;
 
 public class MyUser : WebService {
 
      [ SoapDocumentMethod(Action="http://www.contoso.com/GetUserName")]
      public string GetUserName() {
       return User.Identity.Name;
      }
 }

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



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

辞書ショートカット

すべての辞書の索引

「SoapDocumentMethodAttribute.Action プロパティ」の関連用語

SoapDocumentMethodAttribute.Action プロパティのお隣キーワード
検索ランキング

   

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



SoapDocumentMethodAttribute.Action プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS