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 10828200BC6 for ; Sat, 5 Nov 2016 13:11:01 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0F38A160B09; Sat, 5 Nov 2016 12:11:01 +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 5FDA2160AE0 for ; Sat, 5 Nov 2016 13:11:00 +0100 (CET) Received: (qmail 75379 invoked by uid 500); 5 Nov 2016 12:10:59 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 75363 invoked by uid 99); 5 Nov 2016 12:10:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Nov 2016 12:10:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 6D7852C0D55 for ; Sat, 5 Nov 2016 12:10:59 +0000 (UTC) Date: Sat, 5 Nov 2016 12:10:59 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-10429) CXFRS client requires Exchange.HTTP_URI instead of HTTP_PATH for Camel tranport MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 05 Nov 2016 12:11:01 -0000 [ https://issues.apache.org/jira/browse/CAMEL-10429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15639481#comment-15639481 ] ASF GitHub Bot commented on CAMEL-10429: ---------------------------------------- Github user asfgit closed the pull request at: https://github.com/apache/camel/pull/1249 > CXFRS client requires Exchange.HTTP_URI instead of HTTP_PATH for Camel tranport > ------------------------------------------------------------------------------- > > Key: CAMEL-10429 > URL: https://issues.apache.org/jira/browse/CAMEL-10429 > Project: Camel > Issue Type: Bug > Components: camel-cxfrs > Affects Versions: 2.18.0 > Reporter: Tadayoshi Sato > Priority: Minor > Fix For: 2.18.1, 2.19.0 > > Attachments: camel-cxf-transport.zip > > > The [camel-cxfrs doc|http://camel.apache.org/cxfrs.html] writes that {{HTTP_PATH}} is required for {{camel-cxfrs}} producer when it's used with {{httpClientAPI}} option. > {quote} > The CXF JAXRS front end also provides a http centric client API. You can also invoke this API from camel-cxfrs producer. *You need to specify the HTTP_PATH and the HTTP_METHOD* and let the producer use the http centric client API by using the URI option httpClientAPI or by setting the message header CxfConstants.CAMEL_CXF_RS_USING_HTTP_API. > {quote} > However, when Camel transport is used between CXFRS producer and consumer, the invocation succeeds only if it sets {{HTTP_URI}}, not {{HTTP_PATH}}, to the header. > {code:java} > from("direct:input.camel") > .setHeader(Exchange.HTTP_METHOD, constant("GET")) > .setHeader(Exchange.CONTENT_TYPE, constant("text/plain")) > .setHeader(Exchange.HTTP_URI, simple("/greeting/hello/${body}")) > //.setHeader(Exchange.HTTP_PATH, simple("/greeting/hello/${body}")) // <- fails > .inOut("cxfrs:bean:rsClient"); > {code} > Otherwise it fails with {{404}} error. -- This message was sent by Atlassian JIRA (v6.3.4#6332)