Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 47CD38679 for ; Thu, 18 Aug 2011 19:23:52 +0000 (UTC) Received: (qmail 2607 invoked by uid 500); 18 Aug 2011 19:23:52 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 2454 invoked by uid 500); 18 Aug 2011 19:23:51 -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 2436 invoked by uid 99); 18 Aug 2011 19:23:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Aug 2011 19:23:50 +0000 X-ASF-Spam-Status: No, hits=-2001.1 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Aug 2011 19:23:48 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 3FE0BC3F61 for ; Thu, 18 Aug 2011 19:23:27 +0000 (UTC) Date: Thu, 18 Aug 2011 19:23:27 +0000 (UTC) From: "Jesse Pangburn (JIRA)" To: issues@cxf.apache.org Message-ID: <1727816754.50130.1313695407258.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1949497353.50128.1313695407201.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (CXF-3749) Using Dispatch API with Source type fails to set WS-Addressing action header properly in MESSAGE mode with SOAP 1.2 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 [ https://issues.apache.org/jira/browse/CXF-3749?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jesse Pangburn updated CXF-3749: -------------------------------- Attachment: patch3747and3748and3749.txt Since I've patched two other defects on this same file in the same revision, this patch fixes those defects as well as this one. > Using Dispatch API with Source type fails to set WS-Addressing action header properly in MESSAGE mode with SOAP 1.2 > ------------------------------------------------------------------------------------------------------------------- > > Key: CXF-3749 > URL: https://issues.apache.org/jira/browse/CXF-3749 > Project: CXF > Issue Type: Bug > Components: JAX-WS Runtime > Affects Versions: 2.4.1 > Reporter: Jesse Pangburn > Priority: Minor > Labels: dispatch, jaxws, soap12 > Attachments: patch3747and3748and3749.txt > > > Prior tests with PAYLOAD mode were successful with SOAP 1.2, but a quick test on MESSAGE mode with a StaxSource revealed that the WS-Addressing action header is not properly set in SOAP 1.2. In one of the DispatchImpl.java's getPayloadElementName methods, there is the following code with a SOAP 1.1 namespace hardcoded: > if (this.mode == Service.Mode.MESSAGE) { > StaxUtils.skipToStartOfElement(reader); > StaxUtils.toNextTag(reader, > new QName("http://schemas.xmlsoap.org/soap/envelope/", "Body")); > reader.nextTag(); > return reader.getName().toString(); > } > To work with SOAP 1.1 or SOAP 1.2, it should be changed to: > if (this.mode == Service.Mode.MESSAGE) { > StaxUtils.skipToStartOfElement(reader); > StaxUtils.toNextTag(reader, > new QName(ele.getNamespaceURI(), "Body")); > reader.nextTag(); > return reader.getName().toString(); > } > I've tested this fix with a Source type in MESSAGE mode and it works with SOAP 1.1 and 1.2. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira