Return-Path: X-Original-To: apmail-cxf-users-archive@www.apache.org Delivered-To: apmail-cxf-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A74A563E4 for ; Mon, 13 Jun 2011 06:38:23 +0000 (UTC) Received: (qmail 88787 invoked by uid 500); 13 Jun 2011 06:38:23 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 88749 invoked by uid 500); 13 Jun 2011 06:38:22 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 88741 invoked by uid 99); 13 Jun 2011 06:38:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Jun 2011 06:38:22 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of per.andersson@idainfront.se designates 194.218.15.5 as permitted sender) Received: from [194.218.15.5] (HELO mail.idainfront.se) (194.218.15.5) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Jun 2011 06:38:14 +0000 Received: from walle.lin.idainfront.se (194-218-15-41.customer.telia.com [194.218.15.41]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.idainfront.se (Postfix) with ESMTPS id B05398F8 for ; Mon, 13 Jun 2011 08:37:54 +0200 (CEST) Received: from walle.lin.idainfront.se ([194.218.15.41]) by walle ([194.218.15.41]) with mapi; Mon, 13 Jun 2011 08:37:50 +0200 From: Per Andersson To: "users@cxf.apache.org" Date: Mon, 13 Jun 2011 08:37:51 +0200 Subject: SV: "Pretty print" request messages? Thread-Topic: "Pretty print" request messages? Thread-Index: AcwlxDEsl3HcnnzvRgmo/8ml6mzt0gD0AeqQ Message-ID: <1DCE895F45843C42B615CA046BA82158142D0452BD@walle> References: <1DCE895F45843C42B615CA046BA82158142D045007@walle> In-Reply-To: <1DCE895F45843C42B615CA046BA82158142D045007@walle> Accept-Language: sv-SE, en-US Content-Language: sv-SE X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: sv-SE, en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Hi again! No one that know if this is possible at all? //Per -----Ursprungligt meddelande----- Fr=E5n: Per Andersson [mailto:per.andersson@idainfront.se]=20 Skickat: den 8 juni 2011 12:10 Till: users@cxf.apache.org =C4mne: "Pretty print" request messages? Hi! This is kind of a strange question I guess, but anyway: Are there any possi= bilities to force cxf to "pretty print"/indent the request message it sends= away? Scenario: We have a server application that simply creates text files conta= ining 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 (whic= h makes it "human readable"). We want the same behavior when we use CXF, is= is possible? CXF code on the client: JaxWsProxyFactoryBean factory =3D new JaxWsProxyFactoryBean(); Map properties =3D new HashMap(= ); if (useMtom) { properties.put("mtom-enabled", Boolean.TRUE); } factory.setProperties(properties); factory.setServiceClass(MyCustomPortType.class); factory.setAddress(url); service =3D (MyCustomPortType) factory.create(); service.sendMessage(myMessage); The resulting file when sending the request with soap-UI: value The resulting file when sending the same request with soup-UI: value //Per