I am using CXF 2.3.0 for hosting a services, but the response from the service is
shown below
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<responseElement xmlns="http://xxx/yyyy.wsdl/types/">
<result>
But desired is
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://xxx/yyyy.wsdl/types/">
<env:Body>
<ns0:responseElement>
<ns0:result>
I am having a package-info class which declares the element namespace to be qualified.
Is there any thing else I need to do?
Since CXF uses JAXB for handling XML serialization, you should use standard JAXB methods for controlling how namespace prefixes are allocated. That is, you use something like this in a suitably-placed
package-info.java: