Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 99402 invoked from network); 10 Mar 2009 18:01:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Mar 2009 18:01:11 -0000 Received: (qmail 75337 invoked by uid 500); 10 Mar 2009 18:01:11 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 75328 invoked by uid 500); 10 Mar 2009 18:01:11 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 75317 invoked by uid 99); 10 Mar 2009 18:01:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Mar 2009 11:01:11 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Mar 2009 18:01:10 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7AD37234C003 for ; Tue, 10 Mar 2009 11:00:50 -0700 (PDT) Message-ID: <486873363.1236708050498.JavaMail.jira@brutus> Date: Tue, 10 Mar 2009 11:00:50 -0700 (PDT) From: "Andrew Clegg (JIRA)" To: issues@cxf.apache.org Subject: [jira] Created: (CXF-2101) Cannot add headers to request from Dispatch client in async mode -- ThreadLocal issue MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Cannot add headers to request from Dispatch client in async mode -- ThreadLocal issue ------------------------------------------------------------------------------------- Key: CXF-2101 URL: https://issues.apache.org/jira/browse/CXF-2101 Project: CXF Issue Type: Bug Components: JAX-WS Runtime Affects Versions: 2.1.4 Environment: JDK 1.6.0_10 Reporter: Andrew Clegg org.apache.cxf.jaxws.DispatchImpl extends org.apache.cxf.jaxws.BindingProviderImpl, which has a requestContext field: protected ThreadLocal > requestContext = new ThreadLocal>(); Because the request context is in a ThreadLocal, changes made to it are not visible when you invoke the service via DispatchImpl's invokeAsync method. For example: dispatch.getRequestContext().put( BindingProvider.SOAPACTION_USE_PROPERTY, Boolean.TRUE ); dispatch.getRequestContext().put( BindingProvider.SOAPACTION_URI_PROPERTY, "uri:myAction" ); // If you call it this way, no SOAPAction header, verified by Wireshark: Response response = dispatch.invokeAsync( request ); // But if you call it this way, you get the header StreamSource result = dispatch.invoke( request ); I can package up a test case if anyone thinks it would help fix this. Personally I know very little about CXF's internals, or the JAX-WS specs, but I can do whatever necessary to help. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.