Author: tli
Date: Tue Sep 5 02:22:53 2006
New Revision: 440305
URL: http://svn.apache.org/viewvc?view=rev&rev=440305
Log:
temp fix for bare in interceptor, will lookup for systest fail reason
Modified:
incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/BareInInterceptor.java
Modified:
incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/BareInInterceptor.java
URL:
http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/BareInInterceptor.java?view=diff&rev=440305&r1=440304&r2=440305
==============================================================================
---
incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/BareInInterceptor.java
(original)
+++
incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/BareInInterceptor.java
Tue Sep 5 02:22:53 2006
@@ -62,7 +62,6 @@
if (operation != null) {
piList = operation.getOperationInfo().getInput().getMessageParts();
}
- int seq = 1;
while (StaxUtils.toNextElement(xmlReader)) {
QName streamParaQName = new QName(xmlReader.getNamespaceURI(),
xmlReader.getLocalName());
Object o = null;
@@ -79,17 +78,17 @@
break;
}
}
+ if (o == null) {
+ o = dr.read(xmlReader);
+ }
} else {
o = dr.read(xmlReader);
}
if (o != null) {
parameters.add(o);
- seq++;
- } else {
- throw new RuntimeException("Can't unmarshall parameter No." +
seq);
}
}
-
+
Endpoint ep = exchange.get(Endpoint.class);
Service service = ep.getService();
@@ -97,7 +96,7 @@
parameters.addAll(abstractParamsFromHeader(message.get(Element.class), ep,
message));
}
- if (operation == null) {
+ if (operation == null) {
// If we didn't know the operation going into this, lets try to
// figure
// it out