[SWS-540] Adding XML declaration to a response Created: 13/Jul/09 Updated: 04/May/12 Resolved: 07/Apr/10
|Project:||Spring Web Services|
|Fix Version/s:||2.0 M2|
|Reporter:||Jochen Terstiege||Assignee:||Arjen Poutsma|
|Original Estimate:||Not Specified|
We were asked to add the XML declarationto the response delivered by our web service endpoints.
Since SAAJ 1.2 there seems to be a way to enable the declaration by setting the propertyon the soap message: http://java.sun.com/webservices/saaj/faq.html
Are there any plans to add this feature to the current Spring ws implementation? We are using classes that implement theinterface in combination with the .
|Comment by Nino Stokbro Ag [ 27/Aug/09 ]|
This would also fix the problem we are having described in this post:
|Comment by Lukas Krecan [ 07/Mar/10 ]|
It is possible (and simple) to create an Interceptor to achieve this. It would be great if such interceptor was part of Spring WS.
|Comment by Arjen Poutsma [ 07/Apr/10 ]|
Done. I've added a 'messageProperties' property to SaajSoapMessageFactory. Properties set this way will be applied to any created SaajSoapMessage
|Comment by Arjen Poutsma [ 04/May/12 ]|
Closing old issues