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



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.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


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


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


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


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 メソッド

名前 | 説明 | |
---|---|---|
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 ( Object から継承されます。) |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 ( Object から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 ( Object から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 ( Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 ( Object から継承されます。) |

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 を取得します。 |

名前 | 説明 | |
---|---|---|
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 (Object から継承されます。) |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 (Object から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 (Object から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 (Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 (Object から継承されます。) |

- OperationMessageのページへのリンク