ISerializerFactoryConfig::ElementMapping Method

HRESULT ElementMapping([in] BSTR ElementName, [in] BSTR ElementNamespace, [in] BSTR Type, [in] BSTR TypeNamespace);

This allows you to associate XML Types with elements found during parsing with no inline type attribute. This is useful when working with servers that don't include type information in their responses.

 

Parameters

ElementName
BSTR, [in]: The Element name
ElementNamespace
BSTR, [in]: The Element namespace
Type
BSTR, [in]: The Xml Type for this element
TypeNamespace
BSTR, [in]: The Xml Type namespace for this element

 

Return Values

///todo: discuss the possible return values

 

Sample Code

dim e
set e = CreateObject("pocketSOAP.Envelope.2")
e.setMethod "echoFloat", "http://soapinterop.org/"
e.Parameters.Create "inputFloat", 42.42
' when parsing the response treat a <return> element as a XSD:float
e.SerializerFactory.ElementMapping "return", "", "http://www.w3.org/1999/XMLSchema", "float"
...

 

See Also

The ISerializerFactoryConfig Interface | 

 

 

Copyright

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