I have the following answer created by CXF using JAX-RS:
{"ns1.CustomerInformationResponse":{ "@xsi.type":"ns1:CustomerInformationResponse", "ns2.code":"SUCCESS", "ns1.customer":{ "@xsi.type":"ns2:CustomerBaseDTO", "ns2.login":"login1" } }}
And here is the relevant part of my current context configuration:
<jaxrs:server address="http://${host}:${port}/rest/customer"> <jaxrs:serviceBeans> <ref bean="customerManagementServiceImpl" /> </jaxrs:serviceBeans> <jaxrs:providers> <bean class="org.apache.cxf.jaxrs.provider.AegisJSONProvider" /> </jaxrs:providers> </jaxrs:server>
I would like to receive answers like the ones above without namespace prefixes (i.e. ns1, ns2, etc.).
I tried adding org.apache.cxf.interceptor.transform.TransformOutInterceptor to cxf:outInterceptors , but that didn't help.
source share