Share via


ISoapTypeMapperFactory (Windows Embedded CE 6.0)

1/6/2010

This interface, implemented by the SoapTypeMapperFactory object, can be used to create custom type mappers for arrays and simple data types and for registered custom type mappers. Use the factory along with the low-level API (ISoapSerializer, ISoapReader, and HttpConnector) to create mappers for serializing and deserializing standard XML Schema Definition (XSD) data types. The ISoapTypeMapper::init method takes a reference to a factory to allow custom mappers to create mappers for the data they must serialize and deserialize.

The following table shows the methods supported by the ISoapTypeMapperFactory interface.

Method Description

addElement Method

This method identifies the custom type mapper to be used for the specified element.

addSchema Method

This method identifies the XML Schema Definition (XSD) file to use to find type definitions.

addType Method

This method identifies the custom type mapper to be used for the specified type.

getElementMapper Method

This method creates and returns a type mapper for the specified XSD element node.

getElementMapperbyName Method

This method creates and returns the type mapper for the specified element name.

getMapper Method

This method creates and returns a built-in type mapper for the specified type.

getTypeMapper Method

This method creates and returns a mapper for the specified XML Schema Definition (XSD) simpleType or complexType node.

getTypeMapperbyName Method

This method creates and returns the type mapper for the specified XML Schema Definition (XSD) type (either simpleType or complexType).

Remarks

For an example, see Handling Complex Types. In this application, the client and server send SOAP messages containing the Addr complex type. Also, the custom type mapper, AddrMapper, uses the ISoapTypeMapperFactory object that the Init Method (ISoapTypeMapper) method passes to create the built-in mapper for the XSD string data type.

Requirements

Header mssoap.h
Library uuid.lib
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

SOAP Objects and Interfaces