SoapDocumentServiceAttribute コンストラクタ (SoapBindingUse, SoapParameterStyle)
アセンブリ: System.Web.Services (system.web.services.dll 内)

Dim use As SoapBindingUse Dim paramStyle As SoapParameterStyle Dim instance As New SoapDocumentServiceAttribute(use, paramStyle)
public function SoapDocumentServiceAttribute ( use : SoapBindingUse, paramStyle : SoapParameterStyle )

<%@ WebService Language="VB" Class="SumService" %> Imports System Imports System.Web.Services Imports System.Web.Services.Protocols Imports System.Web.Services.Description <SoapDocumentService(SoapBindingUse.Literal, _ SoapParameterStyle.Wrapped)> _ Public Class SumService Inherits System.Web.Services.WebService <WebMethod> _ Public Function Add(a As Integer, b as Integer) return a + b End Function End Class
<%@ WebService Language="c#" Class="SumService" %> using System; using System.Web.Services; using System.Web.Services.Protocols; using System.Web.Services.Description; [SoapDocumentService(SoapBindingUse.Literal, SoapParameterStyle.Wrapped)] public class SumService : System.Web.Services.WebService { [WebMethod] public int Add(int a, int b) { return a + b; } }

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


SoapDocumentServiceAttribute コンストラクタ (SoapBindingUse)
アセンブリ: System.Web.Services (system.web.services.dll 内)


<%@ WebService Language="VB" Class="SumService" %> Imports System Imports System.Web.Services Imports System.Web.Services.Protocols Imports System.Web.Services.Description <SoapDocumentService(SoapBindingUse.Encoded)> _ Public Class SumService Inherits System.Web.Services.WebService <WebMethod> _ Public Function Add(a As Integer, b as Integer) return a + b End Function End Class
<%@ WebService Language="c#" Class="SumService" %> using System; using System.Web.Services; using System.Web.Services.Protocols; using System.Web.Services.Description; [SoapDocumentService(SoapBindingUse.Encoded)] public class SumService : System.Web.Services.WebService { [WebMethod] public int Add(int a, int b) { return a + b; } }

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


SoapDocumentServiceAttribute コンストラクタ

名前 | 説明 |
---|---|
SoapDocumentServiceAttribute () | すべてのプロパティを既定値に設定し、SoapDocumentServiceAttribute クラスの新しいインスタンスを初期化します。 .NET Compact Framework によってサポートされています。 |
SoapDocumentServiceAttribute (SoapBindingUse) | パラメータの書式を指定し、SoapDocumentServiceAttribute クラスの新しいインスタンスを初期化します。 .NET Compact Framework によってサポートされています。 |
SoapDocumentServiceAttribute (SoapBindingUse, SoapParameterStyle) | パラメータの書式を指定し、SOAP メッセージ内の Body 要素の下で単一の XML 要素内にパラメータをカプセル化するかどうかを指定する SoapDocumentServiceAttribute クラスの新しいインスタンスを初期化します。 .NET Compact Framework によってサポートされています。 |

SoapDocumentServiceAttribute コンストラクタ ()
アセンブリ: System.Web.Services (system.web.services.dll 内)


<%@ WebService Language="VB" Class="SumService" %> Imports System Imports System.Web.Services Imports System.Web.Services.Protocols Imports System.Web.Services.Description <SoapDocumentService(RoutingStyle:=SoapServiceRoutingStyle.SoapAction)> _ Public Class SumService Inherits System.Web.Services.WebService <WebMethod> _ Public Function Add(a As Integer, b as Integer) return a + b End Function End Class
<%@ WebService Language="c#" Class="SumService" %> using System; using System.Web.Services; using System.Web.Services.Protocols; using System.Web.Services.Description; [SoapDocumentService(RoutingStyle=SoapServiceRoutingStyle.SoapAction)] public class SumService : System.Web.Services.WebService { [WebMethod] public int Add(int a, int b) { return a + b; } }

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


- SoapDocumentServiceAttribute コンストラクタのページへのリンク