System.Xml.Serialization.SoapReflectionImporter.ImportMembersMapping Method

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

Syntax

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

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 .NET Framework code entities that belong to a Web service method.
hasWrapperElement
true to indicate that elements that correspond to WSDL message parts should be enclosed in an extra wrapper element in a SOAP message; otherwise, false.
writeAccessors
true to indicate an RPC-style Web service binding; false to indicate a document-style Web service binding or a SOAP header.
validate
true to indicate that a generated deserializer should check for the expected qualified name of the wrapper element; otherwise, false. This parameter's value is relevant only if the hasWrapperElement parameter's value is true.

Returns

Internal .NET Framework type mappings to the element parts of a WSDL message definition.

Remarks

The SoapReflectionImporter.ImportMembersMapping(string, string, XmlReflectionMember[], bool, bool, bool) method is called while initializing a Web service or client, or reflecting a Web service. You do not need to call it directly.

The following list describes possible values for the members parameter:

  • Web service method input parameters.

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

  • 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