SoapDocumentMethodAttribute.Action プロパティ
アセンブリ: System.Web.Services (system.web.services.dll 内)

Dim instance As SoapDocumentMethodAttribute Dim value As String value = instance.Action instance.Action = value
SOAP 要求の SOAPAction HTTP ヘッダー フィールド。既定値は http://tempuri.org/MethodName です。MethodName は XML Web サービス メソッドの名前です。

通常、Action プロパティは、要求の意図を示す URI です。ただし、SOAP 仕様では、URI の書式や、URI を解決できるかどうかに関する規則について制限は規定されていません。Action プロパティの存在と内容は、ファイアウォールなどの Web サーバーによって、HTTP 上の SOAP 要求メッセージを適切にフィルタ処理するために使用できます。
既定で .NET Framework Version 1.1 は、XML Web サービス用に生成された WSDL ドキュメント内のサポートされている SOAP バインディングごとに、Action プロパティを soap:operation 要素の soapAction 属性に発行します。SOAP 仕様の詳細については、W3C Web サイト (http://www.w3.org/TR/SOAP) を参照してください。

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

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からSoapDocumentMethodAttribute.Action プロパティを検索する場合は、下記のリンクをクリックしてください。

- SoapDocumentMethodAttribute.Action プロパティのページへのリンク