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 3A276200C6E for ; Mon, 8 May 2017 16:42:38 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 38C82160BA5; Mon, 8 May 2017 14:42:38 +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 7F0FD160B99 for ; Mon, 8 May 2017 16:42:37 +0200 (CEST) Received: (qmail 3568 invoked by uid 500); 8 May 2017 14:42:31 -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 3555 invoked by uid 99); 8 May 2017 14:42:31 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 May 2017 14:42:31 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id C1BD6C0962 for ; Mon, 8 May 2017 14:42:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.084 X-Spam-Level: X-Spam-Status: No, score=-1.084 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.796, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id BpqGzOcCOtkG for ; Mon, 8 May 2017 14:42:28 +0000 (UTC) Received: from mail-wr0-f182.google.com (mail-wr0-f182.google.com [209.85.128.182]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id DEF705FBE2 for ; Mon, 8 May 2017 14:42:27 +0000 (UTC) Received: by mail-wr0-f182.google.com with SMTP id l9so45940011wre.1 for ; Mon, 08 May 2017 07:42:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=MsxtKQEj696SJ1HwqUrjYSl5yUKDQbacZglhUgAO3+g=; b=h43JvgWSQKHXImfIWhHFDVNf5Tl1kA777/zO3nINWma9VZ/nLmVYam8e7fet/7gBwb RKtlEmEebiSVwML77+Cfw9+tsr2SyTdxrS07AkcQogZmtm9y8d8E3u9P+O5DLS0FJX8i rq4guELm6W78gDBuHPTkBbZErmxtOGqjkEsgBGnJUsGXkQTLNmxpWgPmWtbgPu9tx5e/ yaLYKNBsOCrUd4dNCtf+D7rFwjYBRI8kpA1CarvxeUsnhHqfnH9/54HBrinmrBdRofd1 HPAvbgAdTfQcyrFr+UmAOlKi4r1MxEpp2imSfewPR5WflUu8gDjjesgIGe69LZBwENoW iUdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=MsxtKQEj696SJ1HwqUrjYSl5yUKDQbacZglhUgAO3+g=; b=LqtF0F93zMgmSL2C+bjr6eRnOJ3JdCJ6wb08WwoOGHIMwDD4Rg6YN/De4sUUA0NccD 8ceNH2rhhNHtNvH7XBKkfsUpD5aHB5MXYX9iVmJh8+tq0PjF7qnq9ypbIJ8gUGrHtSxH FxQ5H512IEhF/1sYCbdW5RtijTE+SzCEjlAoVP18L/9GpsON8jHnF6N3khXGTh+9AS0h 0IfR5QfbIhvfsD36znwjI5MidgpWhjxvN+QeNQdtr8+GB/dRykUOprp8JxGgZXGFdl4T OU9XMhdMnGh3MKbzU2OnBmFFz5hacmF106sCggsmTE+9tOgizWP2YjKYKq8iqB9hALIH LKUA== X-Gm-Message-State: AN3rC/6VB6eEiYKx2lOFupN80u4LuwGbM+EDp2qZYzJ63KHnAqxdeHF8 igsh6OKoHqm2vDQknWE= X-Received: by 10.223.132.163 with SMTP id 32mr41494360wrg.154.1494254547310; Mon, 08 May 2017 07:42:27 -0700 (PDT) Received: from [10.36.226.98] ([80.169.137.53]) by smtp.googlemail.com with ESMTPSA id x17sm10359134wrd.63.2017.05.08.07.42.26 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 May 2017 07:42:26 -0700 (PDT) Subject: Re: Unsupported Media Type even for application/xml To: users@cxf.apache.org References: <1494245131950-5780274.post@n5.nabble.com> From: Sergey Beryozkin Message-ID: <9a4e019e-5ffc-3e9b-9e50-726a9e96695b@gmail.com> Date: Mon, 8 May 2017 15:42:26 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <1494245131950-5780274.post@n5.nabble.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit archived-at: Mon, 08 May 2017 14:42:38 -0000 Hi Can you try CXF 3.1.11 ? Cheers, Sergey On 08/05/17 13:05, SetNug wrote: > Hi all, > > I'm publishing method to be accessed via REST without specifying @Consumes, > so I assume I can send XML payload along with Content-Type: application/xml, > but this does not seem to be the case since I keep failing with the > following error: > > 2017-05-08 18:13:50,873 | ERROR | p1826628273-2034 | JAXRSUtils > | 46 - org.apache.cxf.cxf-rt-frontend-jaxrs - 3.1.1 | No message body reader > has been found for class com.modulariti.facade.remote.hr.EmployeeDTO, > ContentType: application/xml > 2017-05-08 18:13:50,873 | WARN | p1826628273-2034 | > WebApplicationExceptionMapper | 46 - org.apache.cxf.cxf-rt-frontend-jaxrs > - 3.1.1 | javax.ws.rs.WebApplicationException: HTTP 415 Unsupported Media > Type > > I tried also using @Consumes("application/xml"), but the error persists. > > I've got this method working for sometime even without adding Content-Type > information in the header, but suddenly it stops working. > > Any help would be greatly appreciated. > > Thanks & Regards, > SetNug > > > > > > -- > View this message in context: http://cxf.547215.n5.nabble.com/Unsupported-Media-Type-even-for-application-xml-tp5780274.html > Sent from the cxf-user mailing list archive at Nabble.com. > -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/