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

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

SoapDocumentMethodAttribute.ParameterStyle プロパティ

SOAP メッセージXML 部分Body 要素の下にある単一XML 要素内に、パラメータカプセル化するかどうかを示す値を取得または設定します

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

Public Property ParameterStyle As
 SoapParameterStyle
Dim instance As SoapDocumentMethodAttribute
Dim value As SoapParameterStyle

value = instance.ParameterStyle

instance.ParameterStyle = value
public SoapParameterStyle ParameterStyle { get;
 set; }
public:
property SoapParameterStyle ParameterStyle {
    SoapParameterStyle get ();
    void set (SoapParameterStyle value);
}
/** @property */
public SoapParameterStyle get_ParameterStyle ()

/** @property */
public void set_ParameterStyle (SoapParameterStyle
 value)
public function get ParameterStyle
 () : SoapParameterStyle

public function set ParameterStyle
 (value : SoapParameterStyle)

プロパティ
XML Web サービス メソッドとの間で送受信される SOAP メッセージの SoapParameterStyle。既定値Wrapped です。

使用例使用例

PlaceOrder XML Web サービス メソッドとの間で送受信される SOAP メッセージ送信するパラメータを、1 つXML 要素内にカプセル化ないよう指定するコード例次に示します

<%@ WebService Language="VB" Class="ShoppingCart"
 %>
 
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System

Public Class ShoppingCart
        
    ' Specify that parameters are not encapsulated within one XML element.
    <SoapDocumentMethod(ParameterStyle:=SoapParameterStyle.Bare), _
     WebMethod()> _
    Public Sub PlaceOrder(OrderDetails as
 OrderItem)
        
        ' Process the order on the back end.
    End Sub
End Class

Public Class OrderItem
  Public Count As Integer
  Public Description as String
  Public OrderDate as DateTime
  Public CustomerID as Long
  Public Cost as Decimal

End Class
<%@ WebService Language="C#" Class="ShoppingCart" %>
 
 using System.Web.Services;
 using System.Web.Services.Protocols;
 using System;

 public class ShoppingCart 
 {
       // Specify that parameters are not encapsulated within one XML
 element.
       [ SoapDocumentMethod(ParameterStyle=SoapParameterStyle.Bare) ]
       [ WebMethod]
       public void PlaceOrder(OrderItem OrderDetails)
 
       {
        // Process the order on the back end.
       }      
 }

public class OrderItem
{
  public int Count;
  public int Description;
  public DateTime OrderDate;
  public long CustomerID;
  public Decimal Cost;
}


プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SoapDocumentMethodAttribute クラス
SoapDocumentMethodAttribute メンバ
System.Web.Services.Protocols 名前空間
SoapParameterStyle
その他の技術情報
SOAP メッセージ形式カスタマイズ


このページでは「.NET Framework クラス ライブラリ リファレンス」からSoapDocumentMethodAttribute.ParameterStyle プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からSoapDocumentMethodAttribute.ParameterStyle プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からSoapDocumentMethodAttribute.ParameterStyle プロパティ を検索

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS