Share via


ISoapTypeMapper (Windows Embedded CE 6.0)

1/6/2010

This interface provides the methods necessary for custom type mapper objects to handle complex types in a SOAP message.

Applications that send and receive complex types in SOAP messages may create a custom type mapper class that implements the ISoapTypeMapper interface. A complex type is as any type, other than an array, represented in a SOAP message as an XML element with child elements. For example, the Addr complex type may appear in a SOAP message as follows.

<Address>
   <Street>...</State>
   <City>...</City>
   <State>...</State>
   <Zip>...</Zip>
</Address>

The SoapClient and SoapServer objects (accessed using the ISoapClient and ISoapServer interfaces) use the custom type mapper objects to serialize and deserialize a specific complex type.

Note

The ISoapTypeMapper interface is derived from IDispatch.

The following tables show the methods supported by the ISoapTypeMapper interface.

Method Description

Init Method (ISoapTypeMapper)

This method initializes the type mapper object.

read Method

This method converts (deserializes) an XML node in an incoming SOAP message into the complex type.

varType Method

This method returns the variant data type that is expected by the write method and will be returned by the read method.

write Method

This method converts (serializes) a complex type into XML in an outgoing SOAP message.

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 AddrMapper class implements the ISoapTypeMapper interface.

Requirements

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

See Also

Reference

SOAP Objects and Interfaces