Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 86469 invoked from network); 17 Dec 2009 10:00:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Dec 2009 10:00:30 -0000 Received: (qmail 75160 invoked by uid 500); 17 Dec 2009 10:00:30 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 75109 invoked by uid 500); 17 Dec 2009 10:00:30 -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 75099 invoked by uid 99); 17 Dec 2009 10:00:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Dec 2009 10:00:29 +0000 X-ASF-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [69.147.102.75] (HELO smtp112.plus.mail.re1.yahoo.com) (69.147.102.75) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 17 Dec 2009 10:00:27 +0000 Received: (qmail 24849 invoked from network); 17 Dec 2009 10:00:06 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.gr; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding; b=pQMoBh/NIR0grCvuz05XUTFTwCoOkYonvdcW01oGGSQtfKtGjizM/PVZaCeNMnzG6mJzvWZllW8UW715Zaia8u94ZWpiX6tMRUdN2M+Zva/FPeBBeeneYx7k0wKwoLN2agGNqdIN4Oo9R7GNpqX+AlSbxVIE30pPE9AMoqC0ctc= ; Received: from cust-87-227.on4.ontelecoms.gr (akarypid@92.118.87.227 with plain) by smtp112.plus.mail.re1.yahoo.com with SMTP; 17 Dec 2009 02:00:05 -0800 PST X-Yahoo-SMTP: zqOro8aswBATGnFGyBkfgkPClVMj X-YMail-OSG: qwEhrFcVM1mDf1w5.HJmGOSg11F3lpbM1aa7ZWvdEv_1w0XfIX6Nt2vLubdH1.BjJWqO3KyvaDuigRzkF1TiIvC.7yLm_KNYQFw3pUJynRvHzHCClCACAAB9c5OTvs3RlnJI1ytb0nNIyW.Xy3YnS0SDoAid0LoCcA708.PtkuJwQ3IQtyPQfNMIzaB7qvnG.XqUgyduw_0X9BUNIhTfVPmEWGma9WFMWKDksX8kYfsdkVFOWpy7U40gGiojAKBEWgLN3IP.4DS68Tltq7XTNEL7P5ckSOEnTG70m8_fmJdCLezRGsFW6I6SEEOPXg.tHrsoaBSideTRSW5nb8eAHWIWwep5xLCacLR6g5SOtNKK0RCnUIGlIEaCiMcFWpOhC6yQEJ6uECQQA2UI74xdtMD7BfvpwTJ7Qh0XRX44puyg67n6VwWuOEI.ZmwZmvnATghRTooQMNsd5g-- X-Yahoo-Newman-Property: ymail-3 Message-ID: <4B2A0123.4050404@yahoo.gr> Date: Thu, 17 Dec 2009 12:00:03 +0200 From: Alexandros Karypidis User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: users@camel.apache.org Subject: Newbie: convert XML Source object to a String in an "as-is" manner Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, I use conversion from an XML "Source" object to a "String" at some point in my route. The default conversion seems adds a new-line character after each element. This breaks my integration because in my case, the message is a SOAP envelope with WS-Security headers regarding a signed element. Is there a way to get around this? All I need is for the XML to become a "String" in an "as-is" manner (with no formatting). My current (Spring) configuration is: ... xmlns:camel-cfg="http://camel.apache.org/schema/spring" xmlns:camel-cxf="http://camel.apache.org/schema/cxf" ... If I don't convert to String, the message doesn't get into the JMS queue. If I do, the message's signature breaks... Thanks in advance, Alex P.S. If it matters, the provider class (which uses Provider) looks like this: @WebServiceProvider(targetNamespace = "...", serviceName = "...", portName = "...", wsdlLocation = "...") @ServiceMode(Mode.MESSAGE) @BindingType(value = HTTPBinding.HTTP_BINDING) public class MyMessagingServiceProvider implements Provider { ...