Do you want formatted output on the wire or just for the loggging?   If just 
for the logging, do:

   <jaxws:features>
                        <bean class="org.apache.cxf.feature.LoggingFeature" >
                               <property name="prettyLogging" value="true"/>
                </jaxws:features>


Dan




On Tuesday, November 22, 2011 1:49:11 AM hhenke wrote:
> Dear community,
> 
> I tried to get formatted XML output using the following configuration, but
> it doesn't work.
> 
> 
>       <jaxws:client   id="aloOutboundClient_1"
>                                       
serviceClass="com.telefonica.hanoss.northbound.cxfgen.alo.Outbound"
>                                       address="${som.southbound.alo.url.1}"
>                                       serviceName="ns:OutboundService"
>                                       endpointName="ns:OutboundPort"
>                                       
> xmlns:ns="urn:telefonica.germany.som_hanoss.alo">
> 
>               <jaxws:features>
>                       <bean class="org.apache.cxf.feature.LoggingFeature" />
>               </jaxws:features>
>           <jaxws:dataBinding>
>           <bean class="org.apache.cxf.jaxb.JAXBDataBinding">
>             <property name="marshallerProperties">
>                 <map>
>                   <entry>
>                     <key><value>jaxb.formatted.output</value></key>
>                     <value type="java.lang.Boolean">true</value>
>                   </entry>
>                 </map>
>             </property>
>           </bean>
>         </jaxws:dataBinding>
>       </jaxws:client>
> 
> 
> 
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/How-to-configure-formatted-output-with-JAXW
> S-spring-client-tp5013106p5013106.html Sent from the cxf-user mailing list
> archive at Nabble.com.
-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to