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

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

SoapDocumentMethodAttribute.Use プロパティ

SOAP メッセージXML 部分内にある XML Web サービス メソッドパラメータ書式取得または設定します

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

Public Property Use As SoapBindingUse
Dim instance As SoapDocumentMethodAttribute
Dim value As SoapBindingUse

value = instance.Use

instance.Use = value
public SoapBindingUse Use { get; set;
 }
public:
property SoapBindingUse Use {
    SoapBindingUse get ();
    void set (SoapBindingUse value);
}
/** @property */
public SoapBindingUse get_Use ()

/** @property */
public void set_Use (SoapBindingUse value)
public function get Use
 () : SoapBindingUse

public function set Use
 (value : SoapBindingUse)

プロパティ
XML Web サービス メソッドの SoapBindingUse。既定値Literal です。

解説解説
使用例使用例

Document/Encoded SOAP メッセージPlaceOrder XML Web サービス メソッド送信するように指定するコード例次に示します

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

Public Class ShoppingCart
        
    ' Specify that the XML Web service method uses encoded SOAP messages.
    <SoapDocumentMethod(Use:=SoapBindingUse.Encoded), _
     WebMethod()> _
    Public Sub PlaceOrder(O 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.Web.Services.Description;
 using System;

 public class ShoppingCart 
 {
       [ SoapDocumentMethod(Use=SoapBindingUse.Encoded) ]
       [ WebMethod]
       public void PlaceOrder(OrderItem O)
 
       {
        // 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 名前空間
SoapBindingUse 列挙
その他の技術情報
SOAP メッセージ形式カスタマイズ


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

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS