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

Dim instance As SoapRpcMethodAttribute Dim value As String value = instance.ResponseNamespace instance.ResponseNamespace = value
/** @property */ public String get_ResponseNamespace () /** @property */ public void set_ResponseNamespace (String value)
public function get ResponseNamespace () : String public function set ResponseNamespace (value : String)
XML Web サービス メソッドに対する SOAP 応答に関連付けられている XML 名前空間。既定値は http://tempuri.org/ です。


ResponseNamespace プロパティを http://www.contoso.com に設定するコード例を次に示します。
<%@ WebService Language="VB" Class="SoapRpcMethodSample" %> Imports System.Web.Services Imports System.Web.Services.Protocols Public Class SoapRpcMethodSample <WebMethod(),SoapRpcMethod(ResponseNamespace :="http://www.contoso.com",ResponseElementName := "MyCustomResponseElement")> _ Public Function ResponseRpc(numentries as Integer) As Integer() Dim intarray(numentries - 1) as Integer Dim i as Integer For i = 0 To numentries - 1 intarray(i) = i Next Return intarray End Function End Class
<%@ WebService Language="C#" Class="SoapRpcMethodSample" %> using System.Web.Services; using System.Web.Services.Protocols; public class SoapRpcMethodSample { [WebMethod] [SoapRpcMethod(ResponseNamespace="http://www.contoso.com" ,ResponseElementName="MyCustomResponseElement")] public int[] ResponseRpc(int numentries) { int[] intarray = new int[numentries]; for (int i=0;i<numentries;i++) { intarray[i] = i; } return intarray; } }

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- SoapRpcMethodAttribute.ResponseNamespace プロパティのページへのリンク