Our project publishes its web services through CXF, using xmlbeans for the marshalling. This combination generates xml without namespace prefix declarations, leading to repeated default namespace declarations each time an element is in another namespace than its parent. Example:
This behaviour doubles the size of the xml message. It would gain us much space, and be more logical/readable, to define the used namespaces on top, using prefixes. I have managed to activate the use of namespaces, by use of the xmlbeans namespace hack in CXF. This causes the namespaces to be declared using prefixes, but they are still at the same locations, and thus needlessly repeated, adding even more size to the messages. Setting an XMLOptions instance, configured with the saveAggressiveNamespaces property on the returned xml beans object does nothing: How can I make CXF marshal the xml beans response object to output something like: -- View this message in context: http://cxf.547215.n5.nabble.com/Formatting-xmlbeans-web-service-output-in-CXF-tp5733051.html Sent from the cxf-user mailing list archive at Nabble.com.
