System.Xml.Serialization.XmlSchemaImporter.ImportMembersMapping Method

Generates internal type mapping information for the element parts of a literal-use SOAP message defined in a WSDL document.

Syntax

public XmlMembersMapping ImportMembersMapping (System.Xml.XmlQualifiedName[] names, Type baseType, bool baseTypeCanBeIndirect)

Parameters

names
An array of type System.Xml.XmlQualifiedName that specifies the names of the message parts.
baseType
A base type for all .NET Framework types that are generated to correspond to message parts.
baseTypeCanBeIndirect
true to indicate that the types corresponding to message parts can indirectly inherit from the base type; otherwise, false.

Returns

The .NET Framework type mappings for the element parts of a WSDL message definition.

Remarks

The XmlSchemaImporter.ImportMembersMapping(System.Xml.XmlQualifiedName[], Type, bool) method is used by the Wsdl.exe tool while generating client proxy classes or abstract server classes from a Web Services Description Language (WSDL) document. Instead of calling this method directly, use Wsdl.exe or Xsd.exe.

The System.Xml.Serialization.XmlSchemaImporter class is used only when a WSDL document specifies literal use. The value of the names parameter contains the qualified names of the parts elements under a message definition in a WSDL document.

This method does not account for the part elements' types.

Requirements

Namespace: System.Xml.Serialization
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0