You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@ws.apache.org by Scott Nichol <sn...@computer.org> on 2002/04/09 19:56:28 UTC
[PATCH] Fix handling of default encoding style for chained mapping
registries
Committers:
I believe I have located a bug in the current Apache SOAP source that prevents
the default encoding from being correctly applied.
The SOAPMappingRegistry class, a subclass of XMLJavaMappingRegistry, now support
chaining, i.e. an instance has a parent, with the parent being null for the
"root" instance. When looking up a mapping, the chain is followed if necessary
to resolve the mapping.
The XMLJavaMappingRegistry class has a method setDefaultEncodingStyle, which
sets the default encoding style. When this method is called on a
SOAPMappingRegistry instance, the default encoding style is set only for the
particular link in the chain. It is *not* set for the parent (and recursively
for all parents). This breaks the proper application of the default.
The attached patch properly overrides setDefaultEncodingStyle for
SOAPMappingRegistry.
Scott Nichol