servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r945461 - /servicemix/components/bindings/servicemix-cxf-bc/trunk/src/main/java/org/apache/servicemix/cxfbc/interceptors/JbiInWsdl1Interceptor.java
Date Tue, 18 May 2010 02:15:24 GMT
Author: ffang
Date: Tue May 18 02:15:23 2010
New Revision: 945461

URL: http://svn.apache.org/viewvc?rev=945461&view=rev
Log:
[SMXCOMP-747]cxf bc consumer strip out xsi/xsd namespace from soap env when useJBIWrapper=false

Modified:
    servicemix/components/bindings/servicemix-cxf-bc/trunk/src/main/java/org/apache/servicemix/cxfbc/interceptors/JbiInWsdl1Interceptor.java

Modified: servicemix/components/bindings/servicemix-cxf-bc/trunk/src/main/java/org/apache/servicemix/cxfbc/interceptors/JbiInWsdl1Interceptor.java
URL: http://svn.apache.org/viewvc/servicemix/components/bindings/servicemix-cxf-bc/trunk/src/main/java/org/apache/servicemix/cxfbc/interceptors/JbiInWsdl1Interceptor.java?rev=945461&r1=945460&r2=945461&view=diff
==============================================================================
--- servicemix/components/bindings/servicemix-cxf-bc/trunk/src/main/java/org/apache/servicemix/cxfbc/interceptors/JbiInWsdl1Interceptor.java
(original)
+++ servicemix/components/bindings/servicemix-cxf-bc/trunk/src/main/java/org/apache/servicemix/cxfbc/interceptors/JbiInWsdl1Interceptor.java
Tue May 18 02:15:23 2010
@@ -18,7 +18,6 @@ package org.apache.servicemix.cxfbc.inte
 
 import java.util.ArrayList;
 import java.util.List;
-
 import javax.xml.XMLConstants;
 import javax.xml.namespace.QName;
 import javax.xml.stream.XMLStreamException;
@@ -87,8 +86,16 @@ public class JbiInWsdl1Interceptor exten
                     soapVersion.getBody().getNamespaceURI(), soapVersion
                             .getBody().getLocalPart(), soapVersion
                             .getPrefix()));
-        		soapEnv.appendChild(soapBody);
+                        soapEnv.setAttribute(XMLConstants.XMLNS_ATTRIBUTE + ":"
+                            + CxfJbiConstants.WSDL11_WRAPPER_XSD_PREFIX,
+                            XMLConstants.W3C_XML_SCHEMA_NS_URI);
+
+                        soapEnv.setAttribute(XMLConstants.XMLNS_ATTRIBUTE + ":"
+                            + CxfJbiConstants.WSDL11_WRAPPER_XSI_PREFIX,
+                            XMLConstants.W3C_XML_SCHEMA_INSTANCE_NS_URI);
+                        soapEnv.appendChild(soapBody);
         		Element body = getBodyElement(message);
+                        
         		if (body != null) {
         			soapBody.appendChild(soapBody.getOwnerDocument().importNode(body,
         					true));



Mime
View raw message