cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t..@apache.org
Subject svn commit: r488935 - /incubator/cxf/trunk/rt/bindings/xml/src/main/java/org/apache/cxf/binding/xml/interceptor/XMLMessageInInterceptor.java
Date Wed, 20 Dec 2006 07:10:04 GMT
Author: tli
Date: Tue Dec 19 23:10:03 2006
New Revision: 488935

URL: http://svn.apache.org/viewvc?view=rev&rev=488935
Log:
CXF-293 fix the xml type_test failure

Modified:
    incubator/cxf/trunk/rt/bindings/xml/src/main/java/org/apache/cxf/binding/xml/interceptor/XMLMessageInInterceptor.java

Modified: incubator/cxf/trunk/rt/bindings/xml/src/main/java/org/apache/cxf/binding/xml/interceptor/XMLMessageInInterceptor.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/bindings/xml/src/main/java/org/apache/cxf/binding/xml/interceptor/XMLMessageInInterceptor.java?view=diff&rev=488935&r1=488934&r2=488935
==============================================================================
--- incubator/cxf/trunk/rt/bindings/xml/src/main/java/org/apache/cxf/binding/xml/interceptor/XMLMessageInInterceptor.java
(original)
+++ incubator/cxf/trunk/rt/bindings/xml/src/main/java/org/apache/cxf/binding/xml/interceptor/XMLMessageInInterceptor.java
Tue Dec 19 23:10:03 2006
@@ -154,10 +154,12 @@
             XMLBindingMessageFormat xmf = bmi.getExtensor(XMLBindingMessageFormat.class);
             if (xmf != null && xmf.getRootNode().getLocalPart().equals(startQName.getLocalPart()))
{
                 message.getExchange().put(BindingOperationInfo.class, boi);
-                try {
-                    xsr.nextTag();
-                } catch (XMLStreamException xse) {
-                    throw new Fault(new org.apache.cxf.common.i18n.Message("STAX_READ_EXC",
BUNDLE));
+                if (!boi.isUnwrappedCapable()) {
+                    try {
+                        xsr.nextTag();
+                    } catch (XMLStreamException xse) {
+                        throw new Fault(new org.apache.cxf.common.i18n.Message("STAX_READ_EXC",
BUNDLE));
+                    }
                 }
                 if (mi.getMessageParts().size() > 0) {
                     return mi.getMessageParts().get(0);



Mime
View raw message