Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

XmlMembersMapping Class

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Provides mappings between .NET Framework Web service methods and Web Services Description Language (WSDL) messages that are defined for SOAP Web services.

System.Object
  System.Xml.Serialization.XmlMapping
    System.Xml.Serialization.XmlMembersMapping

Namespace:  System.Xml.Serialization
Assembly:  System.Xml.Serialization (in System.Xml.Serialization.dll)
[DefaultMemberAttribute("Item")]
public class XmlMembersMapping : XmlMapping

The XmlMembersMapping type exposes the following members.

  NameDescription
Public propertyCountGets the number of .NET Framework code entities that belong to a Web service method to which a SOAP message is being mapped.
Public propertyElementNameGet the name of the mapped element. (Inherited from XmlMapping.)
Public propertyItemGets an item that contains internal type mapping information for a .NET Framework code entity that belongs to a Web service method being mapped to a SOAP message.
Public propertyNamespaceGets the namespace of the mapped element. (Inherited from XmlMapping.)
Public propertyTypeNameGets the name of the .NET Framework type being mapped to the data type of an XML Schema element that represents a SOAP message.
Public propertyTypeNamespaceGets the namespace of the .NET Framework type being mapped to the data type of an XML Schema element that represents a SOAP message.
Public propertyXsdElementNameGets the name of the XSD element of the mapping. (Inherited from XmlMapping.)
Top
  NameDescription
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSetKeySets the key used to look up the mapping. (Inherited from XmlMapping.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

The XmlMembersMapping class is not used directly. Instead, it is used:

  • By the Wsdl.exe tool, or the ServiceDescriptionImporter class, while generating client proxy classes or abstract server classes from a WSDL document. The WSDL document specifies the use of the SOAP protocol.

  • To initialize XmlSerializer objects while the .NET Framework is initializing a SOAP Web service or client.

  • By the ServiceDescriptionReflector class while creating ServiceDescription objects from classes that are identified as SOAP Web services.

The XmlMembersMapping class is a substitute for the XmlTypeMapping class for mapping between Web service methods and messages. It is used to contain any of the following entities belonging to a SOAP Web service method:

  • Input parameters.

  • Output parameters and a return value.

  • Request SOAP headers.

  • Response SOAP headers.

Specifically, the class represents mappings for a WSDL message definition, according to the following choices:

  • For a Web service method that uses SOAP encoding, the top-level ElementName and TypeName properties pertain to a parent, wrapper element. The message parts are represented by array members. However, in the rare case when the Web service operation uses document style combined with a wrapped binding to a .NET Framework method plus SOAP encoding, the top-level ElementName and TypeName properties pertain to the single <part> element that appears in a generated WSDL document.

  • For a Web service method that makes literal use of XML Schema definitions: If a Web service message or operation uses a wrapped binding to a .NET Framework method or defines a single message part, the top-level ElementName and TypeName properties pertain to the part. If there are multiple parts (the atypical case), the top-level ElementName and TypeName properties pertain to a parent, wrapper element. The parts are represented by the Count and indexed array access properties. In addition, the XSD <any> element receives special treatment.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.