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 30A1474EA for ; Mon, 24 Oct 2011 03:19:38 +0000 (UTC) Received: (qmail 83897 invoked by uid 500); 24 Oct 2011 03:19:37 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 83761 invoked by uid 500); 24 Oct 2011 03:19:35 -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 83746 invoked by uid 99); 24 Oct 2011 03:19:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Oct 2011 03:19:32 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of damian.harvey@aon.com designates 65.55.88.11 as permitted sender) Received: from [65.55.88.11] (HELO TX2EHSOBE001.bigfish.com) (65.55.88.11) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Oct 2011 03:19:25 +0000 Received: from mail153-tx2-R.bigfish.com (10.9.14.253) by TX2EHSOBE001.bigfish.com (10.9.40.21) with Microsoft SMTP Server id 14.1.225.22; Mon, 24 Oct 2011 03:19:01 +0000 Received: from mail153-tx2 (localhost.localdomain [127.0.0.1]) by mail153-tx2-R.bigfish.com (Postfix) with ESMTP id 98D96BA821C for ; Mon, 24 Oct 2011 03:19:02 +0000 (UTC) X-SpamScore: -11 X-BigFish: PS-11(zzc85fh4015L14ffOzz1202hzz8275dhz31h2a8h668h839h8aah61h) X-Spam-TCS-SCL: 0:0 X-Forefront-Antispam-Report: CIP:98.129.221.150;KIP:(null);UIP:(null);IPVD:NLI;SRV:BULK;H:extmail01.aon.net;RD:extmail01.aon.net;EFVD:NLI Received-SPF: softfail (mail153-tx2: transitioning domain of aon.com does not designate 98.129.221.150 as permitted sender) client-ip=98.129.221.150; envelope-from=damian.harvey@aon.com; helo=extmail01.aon.net ;il01.aon.net ; Received: from mail153-tx2 (localhost.localdomain [127.0.0.1]) by mail153-tx2 (MessageSwitch) id 131942634194314_18578; Mon, 24 Oct 2011 03:19:01 +0000 (UTC) Received: from TX2EHSMHS046.bigfish.com (unknown [10.9.14.242]) by mail153-tx2.bigfish.com (Postfix) with ESMTP id EE0AF1C8075 for ; Mon, 24 Oct 2011 03:19:00 +0000 (UTC) Received: from extmail01.aon.net (98.129.221.150) by TX2EHSMHS046.bigfish.com (10.9.99.146) with Microsoft SMTP Server (TLS) id 14.1.225.22; Mon, 24 Oct 2011 03:18:56 +0000 Received: from 251634-NADFWMTAP001.aon.com (vontu-vip.aon.com [192.168.10.124]) by extmail01.aon.net (Postfix) with ESMTP id 577A9678031 for ; Sun, 23 Oct 2011 22:18:58 -0500 (CDT) Received: from mail.aon.net (unknown [192.168.10.154]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by 251634-NADFWMTAP001.aon.com (Postfix) with ESMTP id 4E871F54034 for ; Sun, 23 Oct 2011 22:18:58 -0500 (CDT) Received: from 021-SN1MMR1-003.021d.mgd.msft.net (10.178.90.46) by 021-SN1MAIO-05.021d.mgd.msft.net (10.178.90.59) with Microsoft SMTP Server (TLS) id 8.3.106.1; Sun, 23 Oct 2011 22:18:58 -0500 Received: from 021-SN2MPN1-033.021d.mgd.msft.net ([169.254.2.172]) by 021-SN1MMR1-003.021d.mgd.msft.net ([10.178.90.46]) with mapi id 14.01.0323.002; Sun, 23 Oct 2011 22:18:57 -0500 From: Damian Harvey To: "users@camel.apache.org" Subject: Setting SOAP Headers using spring-ws Thread-Topic: Setting SOAP Headers using spring-ws Thread-Index: AcyR9rT8OMhNuPYXRce7esCXyZL8fA== Date: Mon, 24 Oct 2011 03:18:57 +0000 Message-ID: <5D18373AC5CC9841B916CDA512144DA1013C5B@021-SN2MPN1-033.021d.mgd.msft.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.20.240.133] Content-Type: multipart/alternative; boundary="_000_5D18373AC5CC9841B916CDA512144DA1013C5B021SN2MPN1033021d_" MIME-Version: 1.0 X-CFilter-Loop: Reflected X-OriginatorOrg: aon.com --_000_5D18373AC5CC9841B916CDA512144DA1013C5B021SN2MPN1033021d_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi all, I've another SOAP spring-ws question for you. Currently I can't see a way to dynamically set SOAP headers using spring-ws= . I can set static headers by creating a MessageFactory but I see no way to= pass values into it. Is this currently possible? It looks like the recommended approach for spring-ws is to override the doW= ithMessage() method of the WebServiceMessageCallback (http://static.springs= ource.org/spring-ws/site/reference/html/client.html#d4e1822). The Camel Spr= ingWebserviceProducer already does this and I can't see an obvious way to o= verride it. I see two options: 1. Allow for the WebServiceMessageCallback to be overridden so that the dev= eloper can provide his own doWithMessage() method. 2. Have a Camel header for SPRING_WS_SOAP_HEADER that expects a value of ty= pe javax.xml.transform.Source and is added to the SOAP Header in the doWith= Message() method of the DefaultWebserviceMessageCallback. Which approach is better? Happy to create a JIRA and I've already written a patch following approach = #2. Thanks, Damian. ________________________________ This communication (and any attachments) is directed in confidence to the a= ddressee(s) listed above, and may not otherwise be distributed, copied or u= sed. The contents of this communication may also be subject to privilege, a= nd all rights to that privilege are expressly claimed and not waived. If yo= u have received this communication in error, please notify us by reply e-ma= il or by telephone and delete this communication (and any attachments) with= out making a copy. Before opening or using attachments, you should check them for viruses and = defects. We do not accept liability in connection with computer virus, data= corruption, delay, interruption, unauthorised access or unauthorised amend= ment. --_000_5D18373AC5CC9841B916CDA512144DA1013C5B021SN2MPN1033021d_--