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 F408010739 for ; Wed, 31 Jul 2013 17:27:12 +0000 (UTC) Received: (qmail 6125 invoked by uid 500); 31 Jul 2013 17:27:12 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 5714 invoked by uid 500); 31 Jul 2013 17:27:06 -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 5706 invoked by uid 99); 31 Jul 2013 17:27:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Jul 2013 17:27:05 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of john.d.ament@gmail.com designates 209.85.214.170 as permitted sender) Received: from [209.85.214.170] (HELO mail-ob0-f170.google.com) (209.85.214.170) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Jul 2013 17:26:59 +0000 Received: by mail-ob0-f170.google.com with SMTP id eh20so1923603obb.1 for ; Wed, 31 Jul 2013 10:26:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=lWo+TwFlq1l1L15EiOkoNGw9U7HTX1LGrYnDME2oCkk=; b=LG9RwxB9GQjPLGixMprRSSU7RWgtfUYkngRMGQbYt+ZkHo7YKALOa12Oo1hr1fvAkF dJdiNQBecLICH/i+2uM86C0BChKtGD8EUs1yLBjzZysjFfubzsyK0euUAJ0ZPVs1/xNA XHDWKr3K29iPwPQevpYDeERMqpqUjvAF59WoRjHn/qBSEzWDGSH9n5jvU84EsUKJlDeY jktYgc3tlUGorgSzgrIiez/opeYDiJFfUk+yJawaqOg0oAGcMTC+2KIp3mvZ27UCrL0o AB/vfkSEx9XA2AL7U/UOjH0RR4T3WZLGU0Cv7cdkDggs22avQfF7hS2F0yiwjAHMdXAA LatQ== MIME-Version: 1.0 X-Received: by 10.182.225.134 with SMTP id rk6mr61577865obc.40.1375291598367; Wed, 31 Jul 2013 10:26:38 -0700 (PDT) Received: by 10.182.172.101 with HTTP; Wed, 31 Jul 2013 10:26:38 -0700 (PDT) Date: Wed, 31 Jul 2013 13:26:38 -0400 Message-ID: Subject: Correct way to read a CXF Message in MESSAGE format From: "John D. Ament" To: users@camel.apache.org Content-Type: multipart/alternative; boundary=001a11c2f8002ef41004e2d207a9 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c2f8002ef41004e2d207a9 Content-Type: text/plain; charset=ISO-8859-1 Hi all I'm dynamically binding a CXF endpoint to a processor instance, using a route like this: from(simpleEndpointURI + "?dataFormat=MESSAGE&wsdlURL=wsdl/Import.wsdl&loggingFeatureEnabled=true").process(new ImportProcessor()); I setup a simple way of reading this body using an InputStream, but this seems wrong. I'm trying to get the soap headers and the soap body of the message. I'm using MESSAGE dataFormat because I can't seem to get the mustunderstand to process correctly without it. >From the docs: MESSAGEMESSAGE is the raw message that is received from the transport layer. It is not suppose to touch or change Stream, some of the CXF interceptor will be removed if you are using this kind of DataFormat so you can't see any soap headers after the camel-cxf consumer and JAX-WS handler is not supported. Which is fine for me, all I need is some data simply from the body. But is it possible to access the headers? I see everything fine in the InputStream, but it would make more sense if this were available somehow in a POJO/Java format. Is there a way I can use another dataFormat but get it to generate the MustUnderstand properly? Thanks, John --001a11c2f8002ef41004e2d207a9--