servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r645928 - /servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/interceptors/JbiOutWsdl1Interceptor.java
Date Tue, 08 Apr 2008 14:00:17 GMT
Author: ffang
Date: Tue Apr  8 07:00:16 2008
New Revision: 645928

URL: http://svn.apache.org/viewvc?rev=645928&view=rev
Log:
[SM-1304]apply patch on behalf of Edell Nolan with thanks

Modified:
    servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/interceptors/JbiOutWsdl1Interceptor.java

Modified: servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/interceptors/JbiOutWsdl1Interceptor.java
URL: http://svn.apache.org/viewvc/servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/interceptors/JbiOutWsdl1Interceptor.java?rev=645928&r1=645927&r2=645928&view=diff
==============================================================================
--- servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/interceptors/JbiOutWsdl1Interceptor.java
(original)
+++ servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/interceptors/JbiOutWsdl1Interceptor.java
Tue Apr  8 07:00:16 2008
@@ -74,13 +74,17 @@
                 .getContent(XMLStreamWriter.class);
             
             if (!useJBIWrapper) {
-                SoapVersion soapVersion = message.getVersion();
-                if (element != null) {
-                    element = (Element) element.getElementsByTagNameNS(
+                SoapVersion soapVersion = message.getVersion();                
+                if (element != null) {                                                  
   
+                    // if this message is coming from the CxfBCConsumer
+                    Element bodyElement = (Element) element.getElementsByTagNameNS(
                             element.getNamespaceURI(),
                             soapVersion.getBody().getLocalPart()).item(0);
-                    if (element != null) {
-                        StaxUtils.writeElement((Element)element.getFirstChild(), xmlWriter,
false);
+                    if (bodyElement != null) {
+                        StaxUtils.writeElement((Element)bodyElement.getFirstChild(), xmlWriter,
false);                           
+                    } else {
+                        // if this message is coming from the CxfBCProvider 
+                        StaxUtils.writeElement(element, xmlWriter, false);
                     }
                 }
                 return;



Mime
View raw message