SoapDocumentServiceAttributeとは? わかりやすく解説

SoapDocumentServiceAttribute クラス

オプションSoapDocumentServiceAttributeXML Web サービス適用することにより、そのサービス内の XML Web サービス メソッドとの間で送受信される SOAP 要求SOAP 応答既定書式設定できます

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

<AttributeUsageAttribute(AttributeTargets.Class)> _
Public NotInheritable Class
 SoapDocumentServiceAttribute
    Inherits Attribute
Dim instance As SoapDocumentServiceAttribute
[AttributeUsageAttribute(AttributeTargets.Class)] 
public sealed class SoapDocumentServiceAttribute
 : Attribute
[AttributeUsageAttribute(AttributeTargets::Class)] 
public ref class SoapDocumentServiceAttribute
 sealed : public Attribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Class) */ 
public final class SoapDocumentServiceAttribute
 extends Attribute
AttributeUsageAttribute(AttributeTargets.Class) 
public final class SoapDocumentServiceAttribute
 extends Attribute
解説解説

SoapDocumentServiceAttribute使用すると、XML Web サービス内の XML Web サービス メソッドについて既定書式スタイル設定できます。この既定値XML Web サービス メソッドごとに変更する必要がある場合は、SoapDocumentMethodAttribute を該当XML Web サービス メソッド適用します。

Web サービス記述言語 (WSDL: Web Services Description Language) では、操作呼び出す XML Web サービス メソッドSOAP 要求または SOAP 応答における書式として、RPCDocument2 つスタイル定義してます。個別メッセージ部分詳細については、Use プロパティと ParameterStyle プロパティ使用して指定しますUse プロパティは、パラメータ書式として Encoded またはLiteralいずれか指定しますParameterStyle は、パラメータBody 要素の下で単一メッセージ部分カプセル化するかどうか、または各パラメータ独立したメッセージ部分とするかどうか指定します

既定メソッド レベル書式RPC設定するには、SoapRpcServiceAttribute を XML Web サービス実装しているクラス適用します。

詳細については、SOAP メッセージ形式カスタマイズトピック参照してください

この属性は、XML Web サービス実装しているクラス適用できます

使用例使用例
<%@ 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, _
                             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(SoapBindingUse.Literal,
                         SoapParameterStyle.Wrapped,
                         RoutingStyle=SoapServiceRoutingStyle.SoapAction)]
    public class SumService : System.Web.Services.WebService
    {
        [WebMethod]
        public int Add(int
 a, int b)
        {
            return a + b;
        }
    }
継承階層継承階層
System.Object
   System.Attribute
    System.Web.Services.Protocols.SoapDocumentServiceAttribute
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SoapDocumentServiceAttribute メンバ
System.Web.Services.Protocols 名前空間
SoapDocumentMethodAttribute クラス
SoapRpcServiceAttribute
その他の技術情報
SOAP メッセージ形式カスタマイズ

SoapDocumentServiceAttribute コンストラクタ ()

すべてのプロパティ既定値設定し、SoapDocumentServiceAttribute クラス新しインスタンス初期化します。

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

Dim instance As New SoapDocumentServiceAttribute
public SoapDocumentServiceAttribute ()
public:
SoapDocumentServiceAttribute ()
public SoapDocumentServiceAttribute ()
public function SoapDocumentServiceAttribute
 ()
使用例使用例
<%@ 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;
        }
    }
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SoapDocumentServiceAttribute クラス
SoapDocumentServiceAttribute メンバ
System.Web.Services.Protocols 名前空間

SoapDocumentServiceAttribute コンストラクタ (SoapBindingUse, SoapParameterStyle)

パラメータ書式指定しSOAP メッセージ内の Body 要素の下で単一XML 要素内にパラメータカプセル化するかどうか指定する SoapDocumentServiceAttribute クラス新しインスタンス初期化します。

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

Public Sub New ( _
    use As SoapBindingUse, _
    paramStyle As SoapParameterStyle _
)
Dim use As SoapBindingUse
Dim paramStyle As SoapParameterStyle

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

パラメータ

use

パラメータ書式スタイルUse プロパティ設定します

paramStyle

XML Web サービス内の XML Web サービス メソッドとの間で送受信される SOAP メッセージで、Body 要素の下にある単一XML 要素内にパラメータカプセル化するかどうか設定します。ParameterStyle プロパティ設定します

使用例使用例
<%@ 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;
        }
    }
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SoapDocumentServiceAttribute クラス
SoapDocumentServiceAttribute メンバ
System.Web.Services.Protocols 名前空間

SoapDocumentServiceAttribute コンストラクタ (SoapBindingUse)

パラメータ書式指定し、SoapDocumentServiceAttribute クラス新しインスタンス初期化します。

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

Public Sub New ( _
    use As SoapBindingUse _
)
Dim use As SoapBindingUse

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

パラメータ

use

XML Web サービスパラメータ書式スタイルUse プロパティ設定します

使用例使用例
<%@ 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;
        }
    }
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SoapDocumentServiceAttribute クラス
SoapDocumentServiceAttribute メンバ
System.Web.Services.Protocols 名前空間

SoapDocumentServiceAttribute コンストラクタ

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

名前 説明
SoapDocumentServiceAttribute () すべてのプロパティ既定値設定しSoapDocumentServiceAttribute クラス新しインスタンス初期化します。

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

SoapDocumentServiceAttribute (SoapBindingUse) パラメータ書式指定しSoapDocumentServiceAttribute クラス新しインスタンス初期化します。

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

SoapDocumentServiceAttribute (SoapBindingUse, SoapParameterStyle) パラメータ書式指定しSOAP メッセージ内の Body 要素の下で単一XML 要素内にパラメータカプセル化するかどうか指定する SoapDocumentServiceAttribute クラス新しインスタンス初期化します。

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

参照参照

関連項目

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

SoapDocumentServiceAttribute プロパティ


パブリック プロパティパブリック プロパティ

参照参照

関連項目

SoapDocumentServiceAttribute クラス
System.Web.Services.Protocols 名前空間
SoapDocumentMethodAttribute クラス
SoapRpcServiceAttribute

その他の技術情報

SOAP メッセージ形式カスタマイズ

SoapDocumentServiceAttribute メソッド


パブリック メソッドパブリック メソッド

( プロテクト メソッド参照)
  名前 説明
パブリック メソッド Equals  オーバーロードされます。 ( Attribute から継承されます。)
パブリック メソッド GetCustomAttribute  オーバーロードされますアセンブリモジュール、型のメンバ、またはメソッド パラメータ適用され指定した型のカスタム属性取得します。 ( Attribute から継承されます。)
パブリック メソッド GetCustomAttributes  オーバーロードされますアセンブリモジュール、型のメンバ、またはメソッド パラメータ適用されカスタム属性配列取得します。 ( Attribute から継承されます。)
パブリック メソッド GetHashCode  このインスタンスハッシュ コード返します。 ( Attribute から継承されます。)
パブリック メソッド GetType  現在のインスタンスType取得します。 ( Object から継承されます。)
パブリック メソッド IsDefaultAttribute  派生クラス内でオーバーライドされたときに、このインスタンスの値が派生クラス既定値かどうか示します。 ( Attribute から継承されます。)
パブリック メソッド IsDefined  オーバーロードされます指定した型のカスタム属性が、アセンブリモジュール、型のメンバ、またはメソッド パラメータ適用されているかどうか判断します。 ( Attribute から継承されます。)
パブリック メソッド Match  派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンス等しかどうかを示す値を返します。 ( Attribute から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 ( Object から継承されます。)
パブリック メソッド ToString  現在の Object を表す String返します。 ( Object から継承されます。)
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

SoapDocumentServiceAttribute クラス
System.Web.Services.Protocols 名前空間
SoapDocumentMethodAttribute クラス
SoapRpcServiceAttribute

その他の技術情報

SOAP メッセージ形式カスタマイズ

SoapDocumentServiceAttribute メンバ

オプションの SoapDocumentServiceAttribute を XML Web サービス適用することにより、そのサービス内の XML Web サービス メソッドとの間で送受信される SOAP 要求SOAP 応答既定書式設定できます

SoapDocumentServiceAttribute データ型公開されるメンバを以下の表に示します


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド SoapDocumentServiceAttribute オーバーロードされますSoapDocumentServiceAttribute クラス新しインスタンス初期化します。
パブリック プロパティパブリック プロパティ
パブリック メソッドパブリック メソッド
( プロテクト メソッド参照)
  名前 説明
パブリック メソッド Equals  オーバーロードされます。 ( Attribute から継承されます。)
パブリック メソッド GetCustomAttribute  オーバーロードされますアセンブリモジュール、型のメンバ、またはメソッド パラメータ適用され指定した型のカスタム属性取得します。 (Attribute から継承されます。)
パブリック メソッド GetCustomAttributes  オーバーロードされますアセンブリモジュール、型のメンバ、またはメソッド パラメータ適用されカスタム属性配列取得します。 (Attribute から継承されます。)
パブリック メソッド GetHashCode  このインスタンスハッシュ コード返します。 (Attribute から継承されます。)
パブリック メソッド GetType  現在のインスタンスType取得します。 (Object から継承されます。)
パブリック メソッド IsDefaultAttribute  派生クラス内でオーバーライドされたときに、このインスタンスの値が派生クラス既定値かどうか示します。 (Attribute から継承されます。)
パブリック メソッド IsDefined  オーバーロードされます指定した型のカスタム属性が、アセンブリモジュール、型のメンバ、またはメソッド パラメータ適用されているかどうか判断します。 (Attribute から継承されます。)
パブリック メソッド Match  派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンス等しかどうかを示す値を返します。 (Attribute から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 (Object から継承されます。)
パブリック メソッド ToString  現在の Object を表す String返します。 (Object から継承されます。)
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

SoapDocumentServiceAttribute クラス
System.Web.Services.Protocols 名前空間
SoapDocumentMethodAttribute クラス
SoapRpcServiceAttribute

その他の技術情報

SOAP メッセージ形式カスタマイズ



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

辞書ショートカット

すべての辞書の索引

「SoapDocumentServiceAttribute」の関連用語

SoapDocumentServiceAttributeのお隣キーワード
検索ランキング

   

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



SoapDocumentServiceAttributeのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS