ISerializerFactoryEx::SerializerForNode Method

HRESULT SerializerForNode([in] ISOAPNode * n, [in] BSTR ParentType, [in] BSTR ParentTypeNS, [out] BSTR * type, [out] BSTR * typeNamespace, [out, retval] ISoapSerializer ** s);

Finds a serializer for a particular Node value, taking into account its serialization context, such as containg type and element name. This allows values with the same COM type, to have different resulting XML types, depending on their context. e.g. a particular service may want to get one parameter as a xsd:base64Binary, and another parameter as an xsd:hexBinary, both of these are represented as bytes arrays in COM, so this allows to handle those context specific mappings.

 

Parameters

n
ISOAPNode *, [in]: The node whose value needs a serializer
ParentType
BSTR, [in]: The containing XML Type.
ParentTypeNS
BSTR, [in]: The namespace of the containing XML Type
type
BSTR *, [out]: This receives the matching XML typename
typeNamespace
BSTR *, [out]: The receives the namespace of the matching XML type.
s
ISoapSerializer **, [out, retval]: The matching serializer to use.

 

Return Values

The type, typeNamespace and resulting Serializer will be populated following the call.

 

Sample Code



  

 

See Also

The ISerializerFactoryEx Interface | 

 

 

Copyright

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