ISerializerFactory2::DeserializerForChild Method

HRESULT DeserializerForChild([in] BSTR ParentType, [in] BSTR ParentTypeNS, [in] BSTR elementName, [in] BSTR elementNamespace, [in] VARIANT_BOOL IsArray, [in, out] BSTR * XmlType, [in, out] BSTR * XmlTypeNS, [out, retval] ISoapDeSerializer ** s);

Find a suitable de-serializer for a given element, that is contained within a given type. Pass empty strings for ParentType and ParentTypeNS to indicate that there is no parentType [this is then equivalent to calling DeserializerForElement]. Local type mappings are checked first, if no suitable mapping is found there, then the global type mappings [as set via calls to ElementMapping] are checked.

 

Parameters

ParentType
BSTR, [in]: The Type of the containing element
ParentTypeNS
BSTR, [in]: The TypeNamespace of the containing element
elementName
BSTR, [in]: The childName to look for
elementNamespace
BSTR, [in]: The childName namespace to look for
IsArray
VARIANT_BOOL, [in]: Is this an array of items, or a single item ?
XmlType
BSTR *, [in, out]: If a match is found, this is the resulting XmlType registered
XmlTypeNS
BSTR *, [in, out]: If a match is found, this is the namespace of the resulting XmlType registered
s
ISoapDeSerializer **, [out, retval]: An instance of a de-serializer suitable for this type.

 

Return Values

returns S_OK if a suitable de-serializer was found, or E_NO_DESERIALIZER

 

Sample Code



  

 

See Also

The ISerializerFactory2 Interface | 

 

 

Copyright

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