Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-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 4B8A018CAF for ; Tue, 26 Jan 2016 20:30:25 +0000 (UTC) Received: (qmail 49286 invoked by uid 500); 26 Jan 2016 20:30:24 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 49240 invoked by uid 500); 26 Jan 2016 20:30:24 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 49226 invoked by uid 99); 26 Jan 2016 20:30:24 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jan 2016 20:30:24 +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 C854BC24D7 for ; Tue, 26 Jan 2016 20:30:23 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.16 X-Spam-Level: *** X-Spam-Status: No, score=3.16 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=3, SPF_PASS=-0.001, T_REMOTE_IMAGE=0.01, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 5ukar2qAZPc3 for ; Tue, 26 Jan 2016 20:30:16 +0000 (UTC) Received: from mail-ig0-f176.google.com (mail-ig0-f176.google.com [209.85.213.176]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id B7FE120E9B for ; Tue, 26 Jan 2016 20:30:15 +0000 (UTC) Received: by mail-ig0-f176.google.com with SMTP id ik10so65833915igb.1 for ; Tue, 26 Jan 2016 12:30:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=EFIQnjryW7WPux8E+5wlcGXlE1Cf151HEyhrA0mpL9Y=; b=vcjrRk/uxIlxWqe3QCYGGo5ClN0QwG3HH9T3DOoTXZoU+9Bn5QLMneq008WACrVdCf rNpCgLIiYM6nrPpXNOdtzpCxiYlANfjK8C0hVlXSRA8vjznN4mOvwY8SpmbEiBI2tLrY w8BWXQ7M6nq0S2UKEP+YXWtoXi4R7DdZI/1p1VHnJ+G2/J9seTgT+i3KYgfsSJu7ubtX v/6g1gzcjZDzcKFq5FPEmstoOdbgtNut7mNYjem2OluKLYnAX8AJAqxpvwzcarQN/4Fq 4FvxTozTVLhZZ02pdVOYw4N3ceMw32iwSJa/3iiaKvPpcFSKGc48a4vMlnjycr3dtOrJ FbQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=EFIQnjryW7WPux8E+5wlcGXlE1Cf151HEyhrA0mpL9Y=; b=YlzCLhLc6PfB2P/1g7Fe1VeyxDUPcgS+LVPW9+3R+AJYlftLkf9EQ8gfNwvuvIP93A yHV9yS+jUSybGdu1MPP+rKkWOQofG3B8Fe1UXqCjweCzCkFJSIPVYNepeJLPPfbSsk7l QbrTFmsWMnZcUKMnsrknbnYlTDtyHdGOF6zMh959O89xA/peA5mBXebv7/sj78PTWiFl RfpB0llmMHO33Hro9z7I3TFvb/OlzHQijyr1MOeiGqoLNYu/HmphTYksaE7nzDotMPMS aOMfyPAtndgYWpoIgF9UuoS16FR42H5KJfmA75FwlVl6HDqdivyZiZTMD5Hzndov2Mlb TPoA== X-Gm-Message-State: AG10YOQxwA8++RcKzmJV8GzLhNv76wA/wCag3Kgrm84vegrqT5xFRBCc2NEAzZjocBTgSmMhzzlE+i8vvo0VWw== MIME-Version: 1.0 X-Received: by 10.50.33.80 with SMTP id p16mr24056319igi.23.1453840208804; Tue, 26 Jan 2016 12:30:08 -0800 (PST) Received: by 10.64.30.3 with HTTP; Tue, 26 Jan 2016 12:30:08 -0800 (PST) In-Reply-To: References: Date: Tue, 26 Jan 2016 22:30:08 +0200 Message-ID: Subject: Re: Camel Context as Rest Consumer and HTTP Producer From: bob anderson To: users@camel.apache.org Content-Type: multipart/alternative; boundary=089e01538d8c34c299052a428d9c --089e01538d8c34c299052a428d9c Content-Type: text/plain; charset=UTF-8 Hi Richard, Thanks for the suggestion. I tried the change by setting the CamelHttpBaseUri header BUT still get a 404 "The requested resource () is not available." I can't see what URL camel is actually trying to call. But something happens when you try to have an HTTP consumer (Listener) and HTTP producer. Is this a Tomcat issue, Servlet Issue or Camel Issue do you think? Thanks Bob On Tue, Jan 26, 2016 at 12:31 AM, Richard Davidson < richard.davidson.uk@gmail.com> wrote: > Hi Bob, > > Could you try setting: > > > http://xx.xxx.xxx.x/myhttpapp-1 > < > http://xx.xxx.xxx.x/myhttpapp-1/httpListener?bridgeEndpoint=true&throwExceptionOnFailure=false > > > > > > before you make the outgoing HTTP call. > > Cheers, > Richard > > > On Mon, Jan 25, 2016 at 9:33 PM, bob anderson > wrote: > > > I am trying to use a Rest consumer and then an HTTP Producer in the same > > camel context. Both the Rest consumer works and the HTTP producer work > > separately but not in the same context. The HTTP app that is called is > just > > another Camel servlet app that listens and returns an xml body message. I > > get a 404 service not found error. I am probably not understanding some > > concept about in and out bound HTTP > > I have tried in two different Tomcat webservers (v6 and v7), putting the > > http app on different and the same webservers. I am running camel > version > > 2.15.1 - I have written this in the spring dsl as follows; > > > > > > > > > > > > > > > > > contextPath="session" port="8080"> > > > > > > > > > > > produces="application/json"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > POST > > > > > > > > > > > > > > > > > > > > ${body} > > > > > > > resultType="java.lang.Integer">${header.CamelHttpResponseCode} > > > > > > > > > > > > > > > > -- > > > -- Bob Anderson +27 (0) 82 389 0335 +234 (0)802 478 9237 [image: View my profile on LinkedIn] --089e01538d8c34c299052a428d9c--