ISerializerFactory::DeserializerForElement Method

HRESULT DeserializerForElement([in] BSTR elementName, [in] BSTR elementNamespace, [in] VARIANT_BOOL IsArray, [out, retval] ISoapDeSerializer ** s);

For a particular element (identified by its NamespaceURI/Localname pair) find a suitable de-serializer. This uses the element name to type mappings setup via calls to ElementMapping

 

Parameters

elementName
BSTR, [in]: the element name
elementNamespace
BSTR, [in]: the namespace of the element
IsArray
VARIANT_BOOL, [in]: If set to VARIANT_FALSE, then this will find a deserializer suitable for a single instance of the element, otherwise it returns a deserializer suitable for handling an array..
s
ISoapDeSerializer **, [out, retval]: The matching serializer, if the serializer also implements ITypesInit, then the serializer factory will of already called ITypesInit::Initialize(...)

 

Return Values

A suitable de-serializer for that element, or E_NO_DESERIALIZER if there is no suitable match

 

Sample Code

///todo: write some sample code

 

See Also

The ISerializerFactory Interface | 

 

 

Copyright

Copyright © Simon Fell, 2000-2004. All rights reserved.