I am using MappingJackson2HttpMessageConverter to convert the object to xml. For a simple object it generates xml like follows
<user xmlns=""><id>user_id</id></user>
I am working with a third party service provider which is not within my control. When making the call, it complains about illegal value because of name space. If I make a call like follows, it works fine.
<user><id>user_id</id></user>
How do I tell MappingJackson2HttpMessageConverter not to include name spaces. I have a workaround that is plain ugly using ClientHttpRequestInterceptor implementation that cleans up the body.
No comments:
Post a Comment