Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 617 invoked from network); 9 Sep 2010 11:29:24 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Sep 2010 11:29:24 -0000 Received: (qmail 83563 invoked by uid 500); 9 Sep 2010 11:29:24 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 83298 invoked by uid 500); 9 Sep 2010 11:29:21 -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 83258 invoked by uid 99); 9 Sep 2010 11:29:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Sep 2010 11:29:19 +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 (athena.apache.org: domain of willem.jiang@gmail.com designates 209.85.160.45 as permitted sender) Received: from [209.85.160.45] (HELO mail-pw0-f45.google.com) (209.85.160.45) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Sep 2010 11:29:14 +0000 Received: by pwj4 with SMTP id 4so507662pwj.32 for ; Thu, 09 Sep 2010 04:28:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=xX/DYulZyrQBe18kB0ElYitWocOssrgMkuPJJy7k/Qw=; b=btOaN5gcUUSeZydDouHpAVf201xyyfbElg5N3j0YL9edpMMrI1xpfZl+BHU1TMDFqg MCRjqZsnuYsOK7eKTC0kf3lCL7jjq8abwraXBEawnpND6wZ4e1wX/nHOikNokOOFwDjf 4neA6nrbxWlBGrkFxuiFE/4V0H8ucMmCHBTJk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=PKPHW5tZYAgDS0Nra3CHVRJfauAfpGWmC3SOjuiKlYCLyvcLbVrBAEi+59wObEIX0B qrlqZQWHtdW/8UNkUEjL0Iv4xDckaMKecJdMadsBkXoIpVU9COL7VVVae7wSxrpZmxev 8wOHOLB/W4/LJ81MaKhyQBHf31Od/N8llWDlk= Received: by 10.142.255.8 with SMTP id c8mr734321wfi.109.1284031734038; Thu, 09 Sep 2010 04:28:54 -0700 (PDT) Received: from [192.168.0.158] ([123.116.36.116]) by mx.google.com with ESMTPS id n36sm1357951wfa.16.2010.09.09.04.28.51 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 09 Sep 2010 04:28:53 -0700 (PDT) Message-ID: <4C88C4EF.5030002@gmail.com> Date: Thu, 09 Sep 2010 19:28:47 +0800 From: Willem Jiang User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.8) Gecko/20100802 Lightning/1.0b2 Thunderbird/3.1.2 MIME-Version: 1.0 To: users@camel.apache.org Subject: Re: camel cxfbean & JAX-Rs & @QueryParam References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 9/9/10 6:49 PM, Charles Moulliard wrote: > Hi, > > I try in my camel cxf bean to retrieve query parameters of my HTTP POST > request. No error is reported but I can get this property. > > Request : curl.exe -i -X POST > http://localhost:9292/jway/validateForm?formID=profil > > INFO: c149af70-d990-4746-8528-2d9ace11832a>>> (RestToSOAP) from( > http://localhost:9292) --> formRequestREST<<< Pattern:InOut, > Headers:{User-Agent=curl/7.20.0 (i686-pc-mi > ngw32) libcurl/7.20.0 OpenSSL/0.9.8k zlib/1.2.3, > CamelHttpCharacterEncoding=null, Content-Type=null, CamelHttpUrl= > http://localhost:9292/jway/validateForm, CamelHttpPath=/ > jway/validateForm, CamelHttpMethod=POST, Host=localhost:9292, > CamelHttpQuery=formID=profil, Accept=*/*, formID=profil, > CamelHttpUri=/jway/validateForm}, > >> From the trace, we can see that the query parameter of the request is there > --> formID=profil but the object returned does not contain this info > > @POST > @Path("/validateForm") > public Response validateForm( > @QueryParam("formID") String formID, > @QueryParam("dataID") String dataID, > @QueryParam("draftID") String draftID, > @QueryParam("userID") String userID, > @QueryParam("draftData") String draftData) { > > Form form = new Form(); > form.setFormID(formID); > form.setDataID(dataID); > form.setDraftID(draftID); > form.setUserID(userID); > form.setAction("VALIDATE"); > form.setDraftData(draftData); > > producer.sendBodyAndHeader(URI_DIRECT, form, "ACTION", "VALIDATE"); > return Response.ok(form).build(); > } > > --> return : Can you try to write some log in the validateForm to see if the fromID has the value ? If it's null, that could be a bug of camel cxf bean. > > standalone="yes"?>
VALIDATE
> > Regards, > > Charles Moulliard > > Senior Enterprise Architect (J2EE, .NET, SOA) > Apache Camel - Karaf - ServiceMix Committer > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Blog : http://cmoulliard.blogspot.com | Twitter : > http://twitter.com/cmoulliard > Linkedin : http://www.linkedin.com/in/charlesmoulliard | Skype: cmoulliard >