System.Xml.Serialization.XmlReflectionImporter.ImportMembersMapping Method

Generates internal type mappings for information from a Web service method.

Syntax

public XmlMembersMapping ImportMembersMapping (string elementName, string ns, XmlReflectionMember[] members, bool hasWrapperElement)

Parameters

elementName
An XML element name produced from the Web service method.
ns
An XML element namespace produced from the Web service method.
members
An array of System.Xml.Serialization.XmlReflectionMember objects that contain .NET Framework code entities that belong to a Web service method.
hasWrapperElement
true if elements that correspond to Web Services Description Language (WSDL) message parts should be enclosed in an extra wrapper element in a SOAP message; otherwise, false.

Returns

An System.Xml.Serialization.XmlMembersMapping with mappings to the element parts of a WSDL message definition.

Remarks

The XmlReflectionImporter.ImportMembersMapping(string, string, XmlReflectionMember[], bool) method is called while initializing a Web service or client, or reflecting a Web service. It is not necessary to call it directly.

The System.Xml.Serialization.XmlReflectionMember array parameter can consist of any one of the following:

  • Web service method input parameters.

  • Web service method output parameters, plus the return type, if not void, at index 0.

  • SOAP input headers.

  • SOAP output headers.

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