Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 21195 invoked from network); 14 Apr 2010 10:18:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Apr 2010 10:18:15 -0000 Received: (qmail 95794 invoked by uid 500); 14 Apr 2010 10:18:15 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 95671 invoked by uid 500); 14 Apr 2010 10:18:14 -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 95658 invoked by uid 99); 14 Apr 2010 10:18:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Apr 2010 10:18:14 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_HELO_PASS,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Apr 2010 10:18:07 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1O1zfG-0007VX-SM for users@camel.apache.org; Wed, 14 Apr 2010 03:17:46 -0700 Message-ID: <28240799.post@talk.nabble.com> Date: Wed, 14 Apr 2010 03:17:46 -0700 (PDT) From: Olivier Roger To: users@camel.apache.org Subject: [CXF] Inbound endpoint with PAYLOAD dataformat MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: olivier.roger@bsb.com X-Virus-Checked: Checked by ClamAV on apache.org Hello Camel, I am experimenting a strange issue when using CXF inbound endpoint with PAYLOAD dataformat option (no problem in MESSAGE mode). First I declare a CXF endpoint: Then, in my route I use it: When I debug in the inspect bean the Exchange object does not contain any value. However, setting a response value works correctly. public void process(final Exchange exchange){ String msg = exchange.getIn().getBody(String.class); System.out.println(msg); // is null exchange.getOut().setBody(createResponse(), PersonDocument.class); // is ok } I read the documentation on the website but found it quite not clear. Am I doing something wrong? Thanks in advance, Olivier -- View this message in context: http://old.nabble.com/-CXF--Inbound-endpoint-with-PAYLOAD-dataformat-tp28240799p28240799.html Sent from the Camel - Users mailing list archive at Nabble.com.