>
> 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)
No idea really. It's likely picking up an older version of CXF that JBoss
may have that doesn't support the "soap.env.ns.map" property. That's really
the only thing I can think of. :-(
Dan
On Friday, August 05, 2011 2:18:52 PM agus wrote:
> 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-pr
> efix-in-CXF-response-tp3423069p4670845.html Sent from the cxf-user mailing
> list archive at Nabble.com.
--
Daniel Kulp
[email protected]
http://dankulp.com/blog
Talend - http://www.talend.com