spring-ws icon indicating copy to clipboard operation
spring-ws copied to clipboard

webServiceTemplate.marshalSendAndReceive() is cleaning up the xmlns attribute [SWS-982]

Open gregturn opened this issue 8 years ago • 0 comments

Bilguun Bayarmagnai opened SWS-982 and commented

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.


Affects: 2.4.0

gregturn avatar Mar 17 '17 12:03 gregturn