How Do I ... : Web Services Tips, Hints and FAQs : Tip: How can I override the default XML serialization logic?
Tip: How can I override the default XML serialization logic?
XML serialization is performed by objects called 'serializers'. Developers can supply custom serializers that replace the default serialization logic.
| container config |
container := SstWSContainer containerNamed: 'MyContainer'.
config := container serializationManager serializationConfigurationNamed:
SstSoapConstants::SstSoapDefaultEnvelopeNamespace.
config serializer: MyCustomSerializer current.
Alternatively, the serialization configuration itself can be replaced.
| container |
container := SstWSContainer containerNamed: 'MyContainer'.
container serializationManager
addSerializationConfiguration: AbtXmlSerializationConfiguration newSoapConfiguration
named: SstSoapConstants::SstSoapDefaultEnvelopeNamespace.
-------------------------------
Last modified date: 04/08/2023