Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 99089 invoked from network); 20 Mar 2011 17:00:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Mar 2011 17:00:02 -0000 Received: (qmail 95286 invoked by uid 500); 20 Mar 2011 17:00:01 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 95260 invoked by uid 500); 20 Mar 2011 17:00:01 -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 95252 invoked by uid 99); 20 Mar 2011 17:00:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Mar 2011 17:00:01 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.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; Sun, 20 Mar 2011 16:59:57 +0000 Received: by qwj8 with SMTP id 8so4035870qwj.32 for ; Sun, 20 Mar 2011 09:59:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=lO9Z8jdrrYWtU7t45JIn0y07XuvxrQXmldF2Y3lLns4=; b=ZTjNORvq2mqw8BLCKDGvz5bSrk4GTSykMCD9LgTOcE+8CnbrkfXt57owyyxRc47gAM kqRrQPfra0v8lO1Q6Zq+2PbGlCs/Boa1JRPD/uFZO4gxEPQMwMogDLhQf6ZwbkfszPz+ UfkZvwi2LYRbw4K2FY1REMz0W/YrU34b7YCsg= 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=Krw4H5yfKI7E++1M6jKYIVofaaQU+50kR6YSisjs/dP0/SqaDpKP3A/AdRlJja2yBv HbYiIl3bZZ5V4uEi/bQO3+VrrGJ81ho48LKM48+uVUn9IvSjZJM91b7Xjr8Kd/BHG8Jz 7v/FZmNAugm2HDqwnlUyt6HfNChdjpucXdPEs= Received: by 10.224.198.198 with SMTP id ep6mr2632342qab.8.1300640376065; Sun, 20 Mar 2011 09:59:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.247.75 with HTTP; Sun, 20 Mar 2011 09:59:16 -0700 (PDT) In-Reply-To: <1300625743589-4135591.post@n5.nabble.com> References: <1300614605262-4127850.post@n5.nabble.com> <4D85D5A1.4010004@die-schneider.net> <1300625743589-4135591.post@n5.nabble.com> From: Claus Ibsen Date: Sun, 20 Mar 2011 17:59:16 +0100 Message-ID: Subject: Re: How to Get SOAP Response at the End of a Camel Route? To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 On Sun, Mar 20, 2011 at 1:55 PM, hyjshanghai wrote: > I have a camel route like this (I removed the < and > symbols to prevent from > being filtered by Nabble): > > route > from uri="cxf:bean:dummySerivceEndpoint" / > process ref="endProcessor" / > /route > > As is shown above, dummySerivceEndpoint is simply an entrance to accept SOAP > messages. It is synchronous, and uses the PAYLOAD message format. > > End processor invokes exchange.getOut().setBody(cxfPayload) to manually set > the response to be returned to the client, where cxfPayload's body contains > a W3C XML DOM object built from a file on the local disk. > > To use the route, I send a SOAP message to dummySerivceEndpoint with the XML > sender plug-in of the Eclipse IDE. > > However, despite that exchange.out is set by endProcessor, I still get a > SOAP message with empty SOAP body in the "Response text" control of the XML > Sender. Why? Read this FAQ http://camel.apache.org/using-getin-or-getout-methods-on-exchange.html And post your code you do in the processor > > -- > View this message in context: http://camel.465427.n5.nabble.com/How-to-Get-SOAP-Response-from-the-Last-Camel-Processor-in-the-Route-tp4127850p4135591.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Claus Ibsen ----------------- FuseSource Email: cibsen@fusesource.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/