Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Adding a String/Element to a response and changing namespaces dynamically

$
0
0
Hi,

1. I'm having a pre-generated xml (snippet) as String and have to insert it
into the output of my Response. Currently I'm not sure how to do this
inside an out-interceptor. What is the best way to do this?

2. I want to transform the namespaces during a response. I've noticed the
TransformationFeature but it's not a static transformation. I'm having a
namespace defined xmlns:foo="http://foo.local/entity" (sample one). My
current challenge is to transform different namespaces for Consumer a and
b. A wants to have xmlns:entity and B wants it to be xmlns:ns1. So again my
question what is the best way to deal with such a requirement? Changing the
consumer implemenation is not possible.

Thanks in advance for your help.

Best regards
André

Viewing all articles
Browse latest Browse all 5648

Trending Articles