Hi Dan,

Thanks for the quick reply. It works but only if I run independently (not on
JBoss 4.2.2)
Here is the code:

public class StreamInterceptor extends AbstractPhaseInterceptor {

    public StreamInterceptor() {
        super(Phase.PREPARE_SEND);
    }
    
    public void handleMessage(Message message) {
                Map hmap = new HashMap();                       
        
hmap.put("ns2","http://esb.tiaa.org/life-insurance-correspondence-v1/types";);
                hmap.put("ns3","http://esb.tiaa.org";);
                message.setContextualProperty("soap.env.ns.map", hmap);
               
message.setContextualProperty("disable.outputstream.optimization", true);
    }
}


Do you know any reason why it would run differently on JBoss? (namespace
repeatedly placed at the envelope, header, and body) but works okay if I run
independently (regular Java class with main method)

Thanks a lot,

Agus

--
View this message in context: 
http://cxf.547215.n5.nabble.com/How-to-customize-namespaces-position-and-prefix-in-CXF-response-tp3423069p4670845.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to