Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 15943 invoked from network); 3 Aug 2010 13:58:43 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Aug 2010 13:58:43 -0000 Received: (qmail 11243 invoked by uid 500); 3 Aug 2010 13:58:43 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 11095 invoked by uid 500); 3 Aug 2010 13:58:42 -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 11087 invoked by uid 99); 3 Aug 2010 13:58:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Aug 2010 13:58:41 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.216.45 as permitted sender) Received: from [209.85.216.45] (HELO mail-qw0-f45.google.com) (209.85.216.45) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Aug 2010 13:58:35 +0000 Received: by qwi4 with SMTP id 4so22008qwi.32 for ; Tue, 03 Aug 2010 06:58:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=IJ8DT5KgfzpN8HCT2R8i8s2kZ3ViMPq92RXOn7836Q0=; b=ONZcntjgm8PSikHpEIIZ9/uQO6bLG8IAl56a4IsnjGv0XnWtjHIlGBGvq0o+ynoze5 AdiVFRpmD1kSAA27tBRq84u1hOjqIaGu4MtL5w6ObhL1/DK6M2qbstxlJXRNqmAr1RIp 1tyUHjUIKivIJgRjKHQNynCH5RMcVME4bUB2w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=qoQfmSda8N2Vwnnb0u1+GDecWjMevD6LfrUcWoU4i+5YqaJvzZxFOPJix2RXraLTuJ LGZ0Lxxf+ekehZ04NE2jw3tzfg2lAsim+LzMu1Cm2QdBRBfqFld3xVg1l0hQqzpj2ISv b7ePLpY09Di8UCHp+7kjQ7Zuh4Xcu4GgvkCmU= Received: by 10.229.189.195 with SMTP id df3mr1160689qcb.143.1280843414196; Tue, 03 Aug 2010 06:50:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.223.195 with HTTP; Tue, 3 Aug 2010 06:49:54 -0700 (PDT) In-Reply-To: References: <3598F076FF67C04AA8F1B1A151D91C5C05CDD77F@SDGEXEVS07.corp.intuit.net> From: Claus Ibsen Date: Tue, 3 Aug 2010 15:49:54 +0200 Message-ID: Subject: Re: Setting url {params} in REST call with Camel To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi I have created a ticket to track this https://issues.apache.org/activemq/browse/CAMEL-3021 On Tue, Aug 3, 2010 at 3:22 PM, Claus Ibsen wrote: > Hi > > Can you try with restletMethod=get > Could be that the post method doesn't parse the uri for { } placeholders. > > > > On Thu, Jul 29, 2010 at 3:12 AM, LaSalle, Craig > wrote: >> Hi - >> >> >> >> I'm using the "restlet" component to make a call to an external REST >> api. >> >> >> >> The route endpoint looks like: >> >> >> >> to("restlet:http://localhost:8080/pscore/datajobs/{jobid}/patientaccount >> ?restletMethod=post"). >> >> >> >> To substitute the "jobid" at runtime, I've set the "jobid" in the >> message header like: >> >> >> >> exchange.getOut().setHeader("jobid", "1234"); >> >> exchange.getOut().setHeader("Content-Type", "application/xml"); >> >> exchange.getOut().setBody("foo"); >> >> >> >> In the external REST service, the "{jobid}" portion of the URL is not >> getting set to the jobid value of "1234". >> >> >> >> I haven't been able to find a clear example of how to substitute the url >> parameters of a REST call with values at runtime. Has anyone else had >> this problem, and worked through it? >> >> >> >> Thanks, >> >> -Craig LaSalle >> >> >> >> > > > > -- > Claus Ibsen > Apache Camel Committer > > Author of Camel in Action: http://www.manning.com/ibsen/ > Open Source Integration: http://fusesource.com > Blog: http://davsclaus.blogspot.com/ > Twitter: http://twitter.com/davsclaus > -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus