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

OperationMessage クラス

XML Web サービスアクションによって渡されるメッセージ種類表します

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

Public MustInherit Class
 OperationMessage
    Inherits NamedItem
Dim instance As OperationMessage
public abstract class OperationMessage : NamedItem
public ref class OperationMessage abstract
 : public NamedItem
public abstract class OperationMessage extends
 NamedItem
public abstract class OperationMessage extends
 NamedItem
解説解説

このクラスは、次のクラス基本クラスとして機能します

  • OperationFault

  • OperationInput

  • OperationOutput

使用例使用例
Imports System
Imports System.Xml
Imports System.Web.Services
Imports System.Web.Services.Description

Class MyOperationMessageSample

   Shared Sub Main()
      Try
         Dim myDescription As ServiceDescription
 = _
            ServiceDescription.Read("MathService_input_vb.wsdl")
         Dim myPortTypeCollection As PortTypeCollection
 = _
            myDescription.PortTypes

         ' Get the OperationCollection for the SOAP protocol.
         Dim myOperationCollection As OperationCollection
 = _
            myPortTypeCollection(0).Operations

         ' Get the OperationMessageCollection for the Add operation.
         Dim myOperationMessageCollection As
 OperationMessageCollection =  _
               myOperationCollection(0).Messages

         Dim myInputOperationMessage As OperationMessage
 = _
            CType(New OperationInput(), OperationMessage)
         Dim myXmlQualifiedName As New
 XmlQualifiedName("AddSoapIn", _
            myDescription.TargetNamespace)
         myInputOperationMessage.Message = myXmlQualifiedName
         myOperationMessageCollection.Insert(0, myInputOperationMessage)
         ' Display the operation name of the InputMessage.
         Console.WriteLine("The operation name is "
 & _
            myInputOperationMessage.Operation.Name)

         ' Add the OperationMessage to the collection.
         myDescription.Write("MathService_new_vb.wsdl")
      Catch e As Exception
         Console.WriteLine("Exception caught!!!")
         Console.WriteLine("Source : " & e.Source.ToString())
         Console.WriteLine("Message : " & e.Message.ToString())
      End Try
   End Sub 'Main
End Class 'MyOperationMessageSample
using System;
using System.Xml;
using System.Web.Services;
using System.Web.Services.Description;

class MyOperationMessageSample
{
   static void Main()
   {
      try
      {
         ServiceDescription myDescription = 
            ServiceDescription.Read("MathService_input_cs.wsdl");
         PortTypeCollection myPortTypeCollection  = 
            myDescription.PortTypes;

         // Get the OperationCollection for the SOAP protocol.
         OperationCollection myOperationCollection =
            myPortTypeCollection[0].Operations;

         // Get the OperationMessageCollection for the Add operation.
         OperationMessageCollection myOperationMessageCollection = 
            myOperationCollection[0].Messages;

         OperationMessage myInputOperationMessage =
            (OperationMessage) new OperationInput();
         XmlQualifiedName myXmlQualifiedName = new XmlQualifiedName(
            "AddSoapIn", myDescription.TargetNamespace);
         myInputOperationMessage.Message = myXmlQualifiedName;
         myOperationMessageCollection.Insert(0, myInputOperationMessage);

         // Display the operation name of the InputMessage.
         Console.WriteLine("The operation name is " + 
            myInputOperationMessage.Operation.Name);

         // Add the OperationMessage to the collection.
         myDescription.Write("MathService_new_cs.wsdl");
      }
      catch(Exception e)
      {
         Console.WriteLine("Exception caught!!!");
         Console.WriteLine("Source : " + e.Source);
         Console.WriteLine("Message : " + e.Message);
      }
   }
}
#using <System.dll>
#using <System.Web.Services.dll>
#using <System.Xml.dll>

using namespace System;
using namespace System::Xml;
using namespace System::Web::Services;
using namespace System::Web::Services::Description;

int main()
{
   try
   {
      ServiceDescription^ myDescription = ServiceDescription::Read( "MathService_input_cs.wsdl"
 );
      PortTypeCollection^ myPortTypeCollection = myDescription->PortTypes;

      // Get the OperationCollection for the SOAP protocol.
      OperationCollection^ myOperationCollection = myPortTypeCollection[ 0 ]->Operations;

      // Get the OperationMessageCollection for the Add operation.
      OperationMessageCollection^ myOperationMessageCollection = myOperationCollection[
 0 ]->Messages;

      OperationMessage^ myInputOperationMessage = (OperationMessage^)(gcnew OperationInput);
      XmlQualifiedName^ myXmlQualifiedName = gcnew XmlQualifiedName( "AddSoapIn",myDescription->TargetNamespace
 );
      myInputOperationMessage->Message = myXmlQualifiedName;

      myOperationMessageCollection->Insert( 0, myInputOperationMessage );

      // Display the operation name of the InputMessage.
      Console::WriteLine( "The operation name is {0}", myInputOperationMessage->Operation->Name
 );

      // Add the OperationMessage to the collection.
      myDescription->Write( "MathService_new_cs.wsdl" );
   }
   catch ( Exception^ e ) 
   {
      Console::WriteLine( "Exception caught!!!" );
      Console::WriteLine( "Source : {0}", e->Source );
      Console::WriteLine( "Message : {0}", e->Message );
   }
}
import System.*;
import System.Xml.*;
import System.Web.Services.*;
import System.Web.Services.Description.*;

class MyOperationMessageSample
{
    public static void main(String[]
 args)
    {
        try {
            ServiceDescription myDescription = ServiceDescription.
                Read("MathService_input_jsl.wsdl");
            PortTypeCollection myPortTypeCollection = myDescription.
                get_PortTypes();
            // Get the OperationCollection for the SOAP protocol.
            OperationCollection myOperationCollection = myPortTypeCollection.
                get_Item(0).get_Operations();
            // Get the OperationMessageCollection for the Add operation.
            OperationMessageCollection myOperationMessageCollection = 
                myOperationCollection.get_Item(0).get_Messages();
            OperationMessage myInputOperationMessage = (OperationMessage)
                new OperationInput();
            XmlQualifiedName myXmlQualifiedName = new XmlQualifiedName(
                "AddSoapIn", myDescription.get_TargetNamespace());
            myInputOperationMessage.set_Message(myXmlQualifiedName);
            myOperationMessageCollection.Insert(0, myInputOperationMessage);
            // Display the operation name of the InputMessage.
            Console.WriteLine("The operation name is " 
                + myInputOperationMessage.get_Operation().get_Name());
            // Add the OperationMessage to the collection.
            myDescription.Write("MathService_new_jsl.wsdl");
        }
        catch (System.Exception e) {
            Console.WriteLine("Exception caught!!!");
            Console.WriteLine("Source : " + e.get_Source());
            Console.WriteLine("Message : " + e.get_Message());
        }
    } //main
} //MyOperationMessageSample
継承階層継承階層
System.Object
   System.Web.Services.Description.DocumentableItem
     System.Web.Services.Description.NamedItem
      System.Web.Services.Description.OperationMessage
         System.Web.Services.Description.OperationFault
         System.Web.Services.Description.OperationInput
         System.Web.Services.Description.OperationOutput
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
OperationMessage メンバ
System.Web.Services.Description 名前空間

OperationMessage コンストラクタ


OperationMessage プロパティ


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

  名前 説明
パブリック プロパティ Documentation  DocumentableItem のインスタンステキスト ドキュメント取得または設定します。 ( DocumentableItem から継承されます。)
パブリック プロパティ DocumentationElement  DocumentableItemドキュメント要素取得または設定します。 ( DocumentableItem から継承されます。)
パブリック プロパティ ExtensibleAttributes  Web Services Interoperability (WS-I) Basic Profile 1.1準拠する WSDL属性拡張機能を表す XmlAttribute 型の配列取得または設定します。 ( DocumentableItem から継承されます。)
パブリック プロパティ Extensions  この DocumentableItem関連付けられている ServiceDescriptionFormatExtensionCollection を取得します。 ( DocumentableItem から継承されます。)
パブリック プロパティ Message 通信データ抽象的な型定義を取得または設定します
パブリック プロパティ Name  項目の名前を取得または設定します。 ( NamedItem から継承されます。)
パブリック プロパティ Namespaces  ServiceDescription オブジェクト生成されるときに名前空間プレフィックス名前空間保持するために使用する名前空間プレフィックス名前空間のディクショナリを取得または設定します。 ( DocumentableItem から継承されます。)
パブリック プロパティ Operation OperationMessage がメンバとして含まれている Operation取得します
参照参照

関連項目

OperationMessage クラス
System.Web.Services.Description 名前空間

OperationMessage メソッド


OperationMessage メンバ

XML Web サービスアクションによって渡されるメッセージ種類表します

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


プロテクト コンストラクタプロテクト コンストラクタ
  名前 説明
プロテクト メソッド OperationMessage  
パブリック プロパティパブリック プロパティ
  名前 説明
パブリック プロパティ Documentation  DocumentableItem のインスタンステキスト ドキュメント取得または設定します。(DocumentableItem から継承されます。)
パブリック プロパティ DocumentationElement  DocumentableItemドキュメント要素取得または設定します。(DocumentableItem から継承されます。)
パブリック プロパティ ExtensibleAttributes  Web Services Interoperability (WS-I) Basic Profile 1.1準拠する WSDL属性拡張機能を表す XmlAttribute 型の配列取得または設定します。(DocumentableItem から継承されます。)
パブリック プロパティ Extensions  この DocumentableItem関連付けられている ServiceDescriptionFormatExtensionCollection を取得します。(DocumentableItem から継承されます。)
パブリック プロパティ Message 通信データ抽象的な型定義を取得または設定します
パブリック プロパティ Name  項目の名前を取得または設定します。(NamedItem から継承されます。)
パブリック プロパティ Namespaces  ServiceDescription オブジェクト生成されるときに名前空間プレフィックス名前空間保持するために使用する名前空間プレフィックス名前空間のディクショナリを取得または設定します。(DocumentableItem から継承されます。)
パブリック プロパティ Operation OperationMessage がメンバとして含まれている Operation取得します
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

OperationMessage クラス
System.Web.Services.Description 名前空間



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

辞書ショートカット

すべての辞書の索引

「OperationMessage」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS