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 A640742E1 for ; Fri, 27 May 2011 14:33:28 +0000 (UTC) Received: (qmail 20937 invoked by uid 500); 27 May 2011 14:33:28 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 20919 invoked by uid 500); 27 May 2011 14:33:28 -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 20911 invoked by uid 99); 27 May 2011 14:33:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 May 2011 14:33:28 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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; Fri, 27 May 2011 14:33:27 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 7C99BE23A5 for ; Fri, 27 May 2011 14:32:47 +0000 (UTC) Date: Fri, 27 May 2011 14:32:47 +0000 (UTC) From: "Sergey Beryozkin (JIRA)" To: issues@cxf.apache.org Message-ID: <453944230.48784.1306506767507.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (CXF-1291) Create an interceptor to strip XML namespaces.... MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-1291?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sergey Beryozkin resolved CXF-1291. ----------------------------------- Resolution: Fixed Fix Version/s: 2.4 TransformFeature can be used to strip namespaces on input and output: http://cxf.apache.org/docs/transformationfeature.html#TransformationFeature-Springconfiguration The only limitation there is that one needs to know which namespaces have to be stripped off - which is reasonable given that for all but oneway requests, the no namespaces response will get back and will need to wrapped back into missing namespaces. Still, I'm planning to add a wildcard support. Another option for OUT payloads only is to register org.apache.cxf.staxutils.transform.IgnoreNamespacesWriter from a custom interceptor as suggested by Dan, by getting the current writer and wrapping it with IgnoreNamespacesWriter > Create an interceptor to strip XML namespaces.... > ------------------------------------------------- > > Key: CXF-1291 > URL: https://issues.apache.org/jira/browse/CXF-1291 > Project: CXF > Issue Type: New Feature > Components: Core > Affects Versions: 2.0.3 > Reporter: Daniel Kulp > Assignee: Sergey Beryozkin > Fix For: 2.4 > > > A couple of folks on cxf-user have asked for the ability to return XML with all the namespaces completely stripped out. > An "interesting" approach could be to add an interceptor immediately after the StaxOutInterceptor that would wrapper the XMLStreamWriter with a writer that would discard all namespace related events. We just need the interceptor to be created. Adding it can be a configuration item for the user. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira