[SWS-982] webServiceTemplate.marshalSendAndReceive() is cleaning up the xmlns attribute Created: 17/Mar/17  Updated: 17/Mar/17

Status: Open
Project: Spring Web Services
Component/s: Core, OXM
Affects Version/s: 2.4.0
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Bilguun Bayarmagnai Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

I'm using xstream and setting "xmlns" attribute using @XStreamAsAttribute. It works as expected when using XStreamMarshaller#marshal(...) method. However when using webServiceTemplate.marshalSendAndReceive(...) method the xmlns attributes gets cleared out and results in empty string like: (I found out this with tracing)

<generate xmlns="" ...

Because the xml namespace changes depending on the envoirnment (dev & prod), and it seems like there's no easy way to achieve that with default jaxb marshaller. With Xstream, setting it on the attribute seems like an easier hack.

Please help me with this, thanks.


Generated at Tue Dec 12 01:00:53 UTC 2017 using JIRA 6.4.14#64029-sha1:ae256fe0fbb912241490ff1cecfb323ea0905ca5.