System.Xml.Serialization.SoapSchemaImporter.ImportMembersMapping Method

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

Syntax

public XmlMembersMapping ImportMembersMapping (string name, string ns, SoapSchemaMember[] members, bool hasWrapperElement)

Parameters

name
The message name.
ns
The message namespace.
members
An array of type System.Xml.Serialization.SoapSchemaMember that provides information about the part elements.
hasWrapperElement
true to have elements defined by the parts enclosed in an extra, wrapper element in a SOAP message; otherwise, false.

Returns

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

Remarks

The SoapSchemaImporter.ImportMembersMapping(string, string, SoapSchemaMember[], bool) method of the System.Xml.Serialization.SoapSchemaImporter class 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.

The System.Xml.Serialization.SoapSchemaImporter class is used only when a WSDL document specifies SOAP encoding, as described in Section 5 of the SOAP 1.1 specification. The parameter values to the SoapSchemaImporter.ImportMembersMapping(string, string, SoapSchemaMember[], bool) method are taken from a message definition in a WSDL document, including the part elements the message element contains.

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