maybe you can write your own mediator which has full access to the soap
message. Then you can use the axiom model to get the attribute of the
root-element and change the value of the prefix. I think, this has to
work. Maybe you can use the build-in-mediators for doing that.