Hi

>>
 <bean id="jaxbProvider"
class="org.apache.cxf.jaxrs.provider.JAXBElementProvider">
   <property name="marshallerProperties">
      <map>
        <entry key="jaxb.formatted.output">
          <value type="java.lang.Boolean">true</value>
       </entry>
     </map>
   </property>
 </bean>


<snip/>


This sounds good. Does it only work if you use jaxb?


Yes, only if JAXB is used...What databinding technology do you use ? Note we have an XmlBeans jaxrs provider which was contributed to CXF awhile back, but at the moment it does not accept any external configuration, which would be easy to fix. Also, one can delegate to the CXF XMLBeans DataBinding which can be used by JAXWS services with the help of the DataBinding jaxrs provider (similarly for SDO); not sure if Aegis supports pretty-printing...

cheers, Sergey

M.
--
I keep six honest serving-men (They taught me all I knew); Their names are
What and Why and When And How and Where and Who.


Reply via email to