Hi,

Your client is a little bit weird as the soap message with ns2 prefix is 
totally valid.

Anyway, you can specify a soap.env.ns.map property for cxf server which is a 
map for the prefix--namespace where you can specify the prefix you want.
-------------
Freeman(Yue) Fang

Red Hat, Inc. 
FuseSource is now part of Red Hat
Web: http://fusesource.com | http://www.redhat.com/
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: @Freeman小屋



On 2013-8-16, at 下午9:28, bhaskerhari wrote:

> We just migrated to CXF 2.7.5 from CXF 2.2 and the new SOAP response has ns2
> as prefix in the response wrapper. This is causing an error at our clients
> end. 
> 
> Jus tried deploying a sample cxf service and there also, I see the prefix as
> ns2 instead of ns1. Any idea how i can get control over the namespace
> prefixes? I am using JDK6.
> 
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
>   <soap:Body>
>      <ns2:sayHiToUserResponse xmlns:ns2="http://server.hw.demo/";>
>         <return>Hello ?</return>
>      </ns2:sayHiToUserResponse>
>   </soap:Body>
> </soap:Envelope>
> 
> 
> 
> --
> View this message in context: 
> http://cxf.547215.n5.nabble.com/Namespace-prefix-ns1-is-missing-in-cxf-soap-response-tp5732560.html
> Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to