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 8874117946 for ; Thu, 23 Oct 2014 16:53:51 +0000 (UTC) Received: (qmail 81202 invoked by uid 500); 23 Oct 2014 16:53:50 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 81154 invoked by uid 500); 23 Oct 2014 16:53:50 -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 81143 invoked by uid 99); 23 Oct 2014 16:53:50 -0000 Received: from mx1-us-east.apache.org (HELO mx1-us-east.apache.org) (54.164.171.186) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Oct 2014 16:53:50 +0000 Received: from mx1-us-east.apache.org (localhost [127.0.0.1]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTP id 5E70643820 for ; Thu, 23 Oct 2014 16:53:50 +0000 (UTC) Received: by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org, from userid 111) id 53CCF43865; Thu, 23 Oct 2014 16:53:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mx1-us-east.apache.org X-Spam-Level: *** X-Spam-Status: No, score=3.5 required=10.0 tests=DKIM_ADSP_CUSTOM_MED, NML_ADSP_CUSTOM_MED,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL, URIBL_BLOCKED,URI_HEX,WEIRD_PORT autolearn=disabled version=3.4.0 Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 1105F43820 for ; Thu, 23 Oct 2014 16:53:50 +0000 (UTC) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1XhLe0-0003iW-4u for users@camel.apache.org; Thu, 23 Oct 2014 09:53:48 -0700 Date: Thu, 23 Oct 2014 09:53:48 -0700 (PDT) From: sayed_india To: users@camel.apache.org Message-ID: <1414083228146-5757953.post@n5.nabble.com> In-Reply-To: <1414076787097-5757947.post@n5.nabble.com> References: <1414064151668-5757939.post@n5.nabble.com> <1414076787097-5757947.post@n5.nabble.com> Subject: Re: calling a REST Service POST method with parameters from another REST Service MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Hello, The first issue of URL is resolved using .setHeader("CamelHttpPath",simple("/dept")) But the POST service call gives ArrayIndexOutofBound Exception with no clue , so stops calling second service .setHeader("CamelHttpMethod",constant("POST")) .setHeader("Content-Type",constant("application/form-urlencoded")) .setHeader("ID",constant("1234")) .setHeader("dept",constant("IT")) .to("cxfrs:http://0.0.0.0:8090/") Any clue/suggestion please? Thanks Sayed -- View this message in context: http://camel.465427.n5.nabble.com/calling-a-REST-Service-POST-method-with-parameters-from-another-REST-Service-tp5757939p5757953.html Sent from the Camel - Users mailing list archive at Nabble.com.