Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 63421200CE1 for ; Thu, 31 Aug 2017 19:15:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 61AA4169C09; Thu, 31 Aug 2017 17:15:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A832C169BF2 for ; Thu, 31 Aug 2017 19:15:03 +0200 (CEST) Received: (qmail 71978 invoked by uid 500); 31 Aug 2017 17:15:02 -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 71966 invoked by uid 99); 31 Aug 2017 17:15:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Aug 2017 17:15:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id E6E311A1C65 for ; Thu, 31 Aug 2017 17:15:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.485 X-Spam-Level: *** X-Spam-Status: No, score=3.485 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, NML_ADSP_CUSTOM_MED=1.2, SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.972, URI_HEX=1.313] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id DBXb4EqwyKeq for ; Thu, 31 Aug 2017 17:15:00 +0000 (UTC) Received: from n5.nabble.com (n5.nabble.com [162.253.133.84]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 59C465F568 for ; Thu, 31 Aug 2017 17:14:59 +0000 (UTC) Received: from mjim.nabble.com (localhost [127.0.0.1]) by n5.nabble.com (Postfix) with ESMTP id 315A1988FF60 for ; Thu, 31 Aug 2017 10:14:53 -0700 (MST) Date: Thu, 31 Aug 2017 10:14:53 -0700 (MST) From: NicholaiX To: users@cxf.apache.org Message-ID: <1504199693136-0.post@n5.nabble.com> In-Reply-To: References: <1504158897185-0.post@n5.nabble.com> Subject: Re: Handling vnd (vendor) content type MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Thu, 31 Aug 2017 17:15:04 -0000 Hi Sergey, I did find one additional issue. Given my prototype: @POST @Consumes(Constants.MY_TYPE) @Produces( Constants.MY_TYPE) public MyDocument HandleMyPost(String cmds) { return new MyDocument(); //... } I see that it is adding an XML prologue to the response. I need to be able to turn off this prologue, since the vendor implementation of this xml document is getting confused. I tried to dump the XML before response: private final XmlMapper mapper = new XmlMapper(); Response resp = Response.status(200).entity(response).encoding(Constants.MY_TYPE).build(); LOG.info(mapper.writeValueAsString(resp)); and this doesn't contain the prologue. What is the proper way to suppress the XML prologue? -- Sent from: http://cxf.547215.n5.nabble.com/cxf-user-f547216.html