I just logged this as a bug:

https://issues.apache.org/jira/browse/CXF-3401


If you write an interceptor for the out chain that simple does:

msg.put("soap.env.ns.map", msg.getContextualProperty("soap.env.ns.map"));

then it should work fine.   In anycase, I'll get this fixed as it should be a 
contextual propertly.

Dan



On Sunday 13 March 2011 9:26:19 PM James Van wrote:
> Hi Dan,
> 
> First of all, thanks for your reply.
> And I apologize for the cxf version, it should be 2.3.3.
> Back to Topic, I've tested what you suggested, and here is the
> configuration added to my endpoint:
>         <jaxws:properties>
>             <entry key="soap.env.ns.map">
>                 <map>
>                     <entry key="body" value="http://ws.sample.body"/>
>                     <entry key="head" value="http://ws.sample.head"/>
>                     <entry key="rsp" value="http://ws.sample.rsp"/>
>                 </map>
>             </entry>
>             <entry key="disable.outputstream.optimization"
> value="true"/> </jaxws:properties>
> But it turned out that nothing had been changed...
> 
> I also debugged the realted code and found out that in
> org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor[line 103], the
> SoapMessage.hasAdditionalEnvNs() returned false. It seems that the
> properties I put into endpoint does not work at all.
> 
> Is there anything else I can do to reslove these problems?
> 
> BTW, my endpoint configuration enabled LoggingFeature, but I don't think it
> would be a problem.
> 
> Thanks again.
> 
> James Van
> 
> ---------------------------------------------------------------------------
> ----------------------------
> 
> 
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/How-to-customize-namespaces-position-and-p
> refix-in-CXF-response-tp3423069p3555831.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

Reply via email to