cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Per Andersson <>
Subject "Pretty print" request messages?
Date Wed, 08 Jun 2011 10:09:45 GMT
This is kind of a strange question I guess, but anyway: Are there any possibilities to force
cxf to "pretty print"/indent the request message it sends away?

Scenario: We have a server application that simply creates text files containing the requests
it get's through a web service. When we send requests to this server using CXF on the client
side (code example below) the creates text file has all content on one single line. If we
use Soap-UI to send the same request, the created file contains line breaks and white spaces
(which makes it "human readable"). We want the same behavior when we use CXF, is is possible?

CXF code on the client:
            JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
            Map<String, Object> properties = new HashMap<String, Object>();
            if (useMtom)
                properties.put("mtom-enabled", Boolean.TRUE);
            service = (MyCustomPortType) factory.create();

The resulting file when sending the request with soap-UI:

The resulting file when sending the same request with soup-UI:


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message