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 8BB7410163 for ; Thu, 5 Dec 2013 20:28:25 +0000 (UTC) Received: (qmail 62389 invoked by uid 500); 5 Dec 2013 20:28:25 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 62258 invoked by uid 500); 5 Dec 2013 20:28:24 -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 Delivered-To: moderator for users@camel.apache.org Received: (qmail 57291 invoked by uid 99); 5 Dec 2013 20:24:25 -0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of k.wilaszek@gmail.com does not designate 216.139.236.26 as permitted sender) Date: Thu, 5 Dec 2013 12:24:00 -0800 (PST) From: krzysztof To: users@camel.apache.org Message-ID: <1386275040320-5744375.post@n5.nabble.com> Subject: Camel CXF in payload mode - received message does not contain body element MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, I have problem with camel cxf in payload mode. CxfPayload object does not contain SOAP body element. I am using camel 2.11.0. I have defined cxf endpoint like this - My ServiceClass is like this: @WebServiceProvider(serviceName = "ServiceName") @ServiceMode(Service.Mode.PAYLOAD) public interface ServiceClass extends Provider { @Override Source invoke(Source source); } I have camel route with following fragment: from("cxf:bean:cxfEndpoint").to(processor) I am sending soap message like: I have noticed that my requests are processed by various interceptors. One of them is DocLiteralInInterceptor. It adds element from my soap body(ns3:BodyElement) to MessageContentsList executing instruction - parameters.add(o); Later it is set as message content. Next interceptor is SoapHeaderInterceptor. It takes message content created in previous interceptor(DocLiteralInInterceptor) and after some processing adds ns1:Header1 to MessageContentList executing instruction - parameters.put(mpi, object); It replaces my body element from previous interceptor with header. When my message arrives to the processor CxfPayload object does not contain body element. What am I doing wrong? Thank you -- View this message in context: http://camel.465427.n5.nabble.com/Camel-CXF-in-payload-mode-received-message-does-not-contain-body-element-tp5744375.html Sent from the Camel - Users mailing list archive at Nabble.com.