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 6962CDC53 for ; Wed, 8 Aug 2012 07:16:26 +0000 (UTC) Received: (qmail 21063 invoked by uid 500); 8 Aug 2012 07:04:49 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 20791 invoked by uid 500); 8 Aug 2012 07:04:39 -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 20575 invoked by uid 99); 8 Aug 2012 07:04:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Aug 2012 07:04:29 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX 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-pb0-f45.google.com) (209.85.160.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Aug 2012 07:04:23 +0000 Received: by pbbrp12 with SMTP id rp12so584055pbb.32 for ; Wed, 08 Aug 2012 00:04:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:in-reply-to:references:subject:x-mailer :mime-version:content-type; bh=7aSabJ8vSr9h5ZljnxEq11Wyg16Zd4/6IyfQ26tZXZg=; b=mtiOyd9by8wpOj8wbXu2a+hwrIWLZhMd+3UzE1Q9/hgf5QwR9/6ZGJQuE6aUEvzI9u kVJSx1wW+xI05vM/oa+FOfk0DCFEsHxN7g7O6AQRLggMEqZtll99QAfwuDZuNYlFYVnf CxcmXDfsI2oylD6XnBRBTMOEzHGNrNxUUjhwd3dG4la/Vozf5QgAvo/aLQJyLSZ/OhM2 FI5/IUgaFiVk4/NsUc36a9OrwCJoSKkY2PpTT6Oi3ALzyMATq7FBojixJMWf2Ab+Iwgx ZouhlizEkRKXwEIrdEk4kxDrEaRdgUxdgWaXhFBUY2lwcqYo9xmxIs4NqEPmnmMU2KfW ffmw== Received: by 10.68.241.202 with SMTP id wk10mr6274848pbc.77.1344409442898; Wed, 08 Aug 2012 00:04:02 -0700 (PDT) Received: from [192.168.1.102] ([111.85.232.137]) by mx.google.com with ESMTPS id qn13sm719430pbb.71.2012.08.08.00.03.48 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 08 Aug 2012 00:03:50 -0700 (PDT) Date: Wed, 8 Aug 2012 15:03:44 +0800 From: Willem jiang To: users@camel.apache.org Message-ID: <4BE63B6B3A2B450299A231150FCCA185@gmail.com> In-Reply-To: <1344407967056-5716965.post@n5.nabble.com> References: <4C066657.9020602@gmail.com> <1344407967056-5716965.post@n5.nabble.com> Subject: Re: How Do We Specify Operation To Choose In Camel CXf X-Mailer: sparrow 1.6.3 (build 1164) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="50220f50_39ee015c_101" X-Virus-Checked: Checked by ClamAV on apache.org --50220f50_39ee015c_101 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Once the message is routing to the next endpoint, you should be able to tell the operation by looking up the message header of "operationName", then you can use the CBR[1] to do the work as you want. .when(header("operationName").isEqualTo("reportCriticalIncidents")).to(direct:route1) .when(header("operationName").isEqualTo("reportSmallIncidents")).to(direct:route2) [1]http://camel.apache.org/content-based-router.html -- Willem Jiang On Wednesday, August 8, 2012 at 2:39 PM, anupamsen wrote: > Hi There, > > I have a similar short of issue. The problem is with the producer end. That > is the from side of the route I want to chose an operation. > > > > > ..... > > > Camel allows having only one endpoint at a single address like the > following- > > > address="http://localhost:${proxy.port}/camel-example-cxf-proxy/webservices/ReportIncident" > endpointName="s:ReportIncidentEndpoint" > serviceName="s:ReportIncidentEndpointService" > wsdlURL="etc/report_incident.wsdl" > xmlns:s="http://reportincident.example.camel.apache.org"> > > > But, in the endpoint I may have multiple operations (eg. > reportCriticalIncidents, reportSmallIncidents etc.). I want to trigger > different workflow based on the method being called rather than have a > single entry point for the entire web service. Does camel provide facility > to route based on the method/operation of an endpoint? > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/How-Do-We-Specify-Operation-To-Choose-In-Camel-CXf-tp474620p5716965.html > Sent from the Camel - Users mailing list archive at Nabble.com (http://Nabble.com). > > --50220f50_39ee015c_101--