Return-Path: Delivered-To: apmail-servicemix-dev-archive@www.apache.org Received: (qmail 2201 invoked from network); 19 Nov 2009 03:21:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 Nov 2009 03:21:18 -0000 Received: (qmail 68218 invoked by uid 500); 19 Nov 2009 03:21:18 -0000 Delivered-To: apmail-servicemix-dev-archive@servicemix.apache.org Received: (qmail 68142 invoked by uid 500); 19 Nov 2009 03:21:16 -0000 Mailing-List: contact dev-help@servicemix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@servicemix.apache.org Delivered-To: mailing list dev@servicemix.apache.org Received: (qmail 68131 invoked by uid 99); 19 Nov 2009 03:21:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Nov 2009 03:21:15 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI 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; Thu, 19 Nov 2009 03:21:13 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BA6C9234C045 for ; Wed, 18 Nov 2009 19:20:52 -0800 (PST) Message-ID: <318036177.1258600852745.JavaMail.jira@brutus> Date: Wed, 18 Nov 2009 19:20:52 -0800 (PST) From: "Freeman Fang (JIRA)" To: dev@servicemix.apache.org Subject: [jira] Commented: (SMXCOMP-660) CXF-BC Component isn't JBI conform In-Reply-To: <1531850702.1255960192740.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c [ https://issues.apache.org/activemq/browse/SMXCOMP-660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=55571#action_55571 ] Freeman Fang commented on SMXCOMP-660: -------------------------------------- Hi Christian, Sorry, not yet, I hope I can get chance soon. Regards Freeman > CXF-BC Component isn't JBI conform > ---------------------------------- > > Key: SMXCOMP-660 > URL: https://issues.apache.org/activemq/browse/SMXCOMP-660 > Project: ServiceMix Components > Issue Type: Bug > Components: servicemix-cxf-bc > Affects Versions: servicemix-cxf-bc-2009.01 > Environment: System: > 2.6.28-15-generic #52-Ubuntu SMP Wed Sep 9 10:48:52 UTC 2009 x86_64 GNU/Linux > JAVA: > java version "1.6.0_16" > Java(TM) SE Runtime Environment (build 1.6.0_16-b01) > Java HotSpot(TM) 64-Bit Server VM (build 14.2-b01, mixed mode) > Server: > apache-tomcat-6.0.14 > ServiceMix: > 3.3.1 war > Reporter: Christian Connert > Assignee: Freeman Fang > Priority: Critical > Attachments: cxfbc.patch > > > Hi, > I just noticed that the CXF-BC Component ain't standard conform. There are several problems: > 1.) The JbiInInterceptor is supposed to write the (soap) headers to the NormalizedMessage (javax.jbi.messaging.protocol.headers). Accordingly to the JBI Spec. the headers should be stored within a Map. But in fact the JbiInInterceptor just puts the header.getObject() in the map. Which results in a ClassCastException in other components (like JMS). The objects are some DOM ElementImpl. > 2.) I'm very unhappy with the fix (https://issues.apache.org/activemq/browse/SMXCOMP-203 states) which removes the WS-Security header from the propagated headers. It's not necessary that the security is implemented with cxf. Thus I think that this fix is not correct. It would be better to e.g. use some other saaj implementation (for instance axis2). Further it might help to at some xerces jar into the class path, but I haven't tested it yet. > 3.) If useJBIWrapper==true the JbiInWsdl1Interceptor warps the message within JBI parts. That is correct. If headers are specified in the WSDL then these headers are added as separate parts. But it never removes the headers, which where added as part, from the SoapMessage, thus the JbiInInterceptor will put them into the javax.jbi.messaging.protocol.headers map. I think this is not like it should be. Servicemix soap does remove the headers form the underlying message and only puts unspecified (not part of the WSDL) headers into the javax.jbi.messaging.protocol.headers map. > kind regards > Christian -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.