[SWS-650] AxiomSoapMessageFactory does not provide way to set properties on XMLInputFactory Created: 02/Nov/10  Updated: 04/May/12  Resolved: 03/Nov/10

Status: Closed
Project: Spring Web Services
Component/s: None
Affects Version/s: 1.5.9
Fix Version/s: 2.0 RC1

Type: Improvement Priority: Minor
Reporter: Matt Magoffin Assignee: Arjen Poutsma
Resolution: Complete Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 0.05h
Original Estimate: Not Specified


The AxiomSoapMessageFactory class instantiates an internally-only accessible XMLInputFactory in its constructor like this:

inputFactory = XMLInputFactory.newInstance();

I would like to be able to turn text coalescing off to be able to handle very large text element content (i.e. base-64 encoded binary data) but without turning off coalescing the JVM will quickly run out of memory.

A way to configure the XMLInputFactory properties, for example to be able to specify a Map<String, Object> configurable property to pass to

inputFactory.setProperty(key, value);

There are many useful properties that can be configured:


Comment by Arjen Poutsma [ 03/Nov/10 ]

I've added a createXmlInputFactory() method, which you can override in a subclass to customize the XMLInputFactory.

Comment by Matt Magoffin [ 03/Nov/10 ]

Thanks, Arjen, but I wonder why we need to subclass just to configure these properties? I think having a createXMLInputFactory() method is useful, of course, but to make it easier to use without needing to subclass could we have a configurable Map<String, Object> property that this class can use?

Comment by Arjen Poutsma [ 04/May/12 ]

Closing old issues

Generated at Wed Oct 17 20:17:38 UTC 2018 using JIRA 7.9.2#79002-sha1:3bb15b68ecd99a30eb364c4c1a393359bcad6278.