Export (0) Print
Expand All

SoapReflectionImporter.ImportMembersMapping Method (String, String, XmlReflectionMember[], Boolean, Boolean, Boolean, XmlMappingAccess)

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

Namespace:  System.Xml.Serialization
Assembly:  System.Xml (in System.Xml.dll)

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

Parameters

elementName
Type: System.String
An XML element name produced from the Web service method.
ns
Type: System.String
An XML element namespace produced from the Web service method.
members
Type: System.Xml.Serialization.XmlReflectionMember[]
An array of .NET Framework code entities that belong to a Web service method.
hasWrapperElement
Type: System.Boolean
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
Type: System.Boolean
true to indicate an RPC-style Web service binding; false to indicate a document-style Web service binding or a SOAP header.
validate
Type: System.Boolean
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.
access
Type: System.Xml.Serialization.XmlMappingAccess
One of the XmlMappingAccess values.

Return Value

Type: System.Xml.Serialization.XmlMembersMapping
Internal .NET Framework type mappings to the element parts of a WSDL message definition.

The ImportMembersMapping 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.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

ADD
Show:
© 2015 Microsoft