DekGenius.com
[ Team LiB ] Previous Section Next Section

MessagePart

System.Web.Services.Description (system.web.services.dll)sealed class

This class represents a WSDL <part> element, which is contained in a <message> element. Each MessagePart object corresponds to a single parameter or a return value for a function, and specifies the variable's Name and either an XML Type or an XML Element, which refers to an element from the Types collection.

For example, a GetStockQuote method would have several messages, including GetStockQuoteHttpGetOut, and would have a single MessagePart representing the return value. Return values are given the Name "parameters" for a SOAP request or "Body" for an HTTP request.

public sealed class MessagePart : DocumentableItem {
// Public Constructors
   public MessagePart( );
// Public Instance Properties
   public XmlQualifiedName Element{set; get; }
   public Message Message{get; }
   public string Name{set; get; }
   public XmlQualifiedName Type{set; get; }
}

Hierarchy

System.Object DocumentableItem MessagePart

Returned By

Message.{FindPartByName( ), FindPartsByName( )}, MessagePartCollection.this

Passed To

MessagePartCollection.{Add( ), Contains( ), CopyTo( ), IndexOf( ), Insert( ), Remove( ), this}

    [ Team LiB ] Previous Section Next Section