Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BDB50E171 for ; Thu, 29 Nov 2012 10:37:03 +0000 (UTC) Received: (qmail 47671 invoked by uid 500); 29 Nov 2012 10:37:01 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 46997 invoked by uid 500); 29 Nov 2012 10:37:00 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 45545 invoked by uid 99); 29 Nov 2012 10:36:58 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Nov 2012 10:36:58 +0000 Date: Thu, 29 Nov 2012 10:36:58 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: <1689846732.39280.1354185418546.JavaMail.jiratomcat@arcas> In-Reply-To: <920736100.39193.1354181938496.JavaMail.jiratomcat@arcas> Subject: [jira] [Resolved] (CAMEL-5833) Can't save the message from a CXF request to a file MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-5833?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen resolved CAMEL-5833. -------------------------------- Resolution: Not A Problem Fix Version/s: 2.11.0 Assignee: Claus Ibsen > Can't save the message from a CXF request to a file > --------------------------------------------------- > > Key: CAMEL-5833 > URL: https://issues.apache.org/jira/browse/CAMEL-5833 > Project: Camel > Issue Type: Bug > Components: camel-cxf > Affects Versions: 2.10.2 > Reporter: liugang > Assignee: Claus Ibsen > Fix For: 2.11.0 > > > if I have following route: > {code} > from("cxf:http://localhost:8091/save2file?dataFormat=RAW&wsdlURL=file:wsdl/se.wsdl").process(new Processor() { > > public void process(Exchange exchange) throws Exception { > // System.out.println(exchange.getIn().getBody(String.class)); // the saved file content is none > System.out.println(exchange.getIn().getBody()); // this works fine > } > }).to("file://output?fileName=message.txt"); > {code} > as comment, if in Processor, I put: > {code} > System.out.println(exchange.getIn().getBody()); > {code} > Then, it works fine, the file created, and the content is correct. > but if I changed *getBody()* to *getBody(String.class)*: > {code} > System.out.println(exchange.getIn().getBody(String.class)); > {code} > then, the file created by with empty content. > Actually, the problem existed for a long time. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira