cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1447875 - /cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/SoapHeaderInterceptor.java
Date Tue, 19 Feb 2013 19:16:51 GMT
Author: dkulp
Date: Tue Feb 19 19:16:50 2013
New Revision: 1447875

URL: http://svn.apache.org/r1447875
Log:
Only grab the schema if we actually need it.

Modified:
    cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/SoapHeaderInterceptor.java

Modified: cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/SoapHeaderInterceptor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/SoapHeaderInterceptor.java?rev=1447875&r1=1447874&r2=1447875&view=diff
==============================================================================
--- cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/SoapHeaderInterceptor.java
(original)
+++ cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/SoapHeaderInterceptor.java
Tue Feb 19 19:16:50 2013
@@ -104,12 +104,12 @@ public class SoapHeaderInterceptor exten
         
         boolean supportsNode = this.supportsDataReader(message, Node.class);
         Service service = ServiceModelUtil.getService(message.getExchange());
-        Schema schema = EndpointReferenceUtils.getSchema(service.getServiceInfos().get(0),
message
-                                                         .getExchange().getBus());
         for (SoapHeaderInfo header : headers) {
             MessagePartInfo mpi = header.getPart();
             try {
                 if (ServiceUtils.isSchemaValidationEnabled(SchemaValidationType.IN, message))
{
+                    Schema schema = EndpointReferenceUtils.getSchema(service.getServiceInfos().get(0),
message
+                                                                     .getExchange().getBus());
                     validateHeader(message, mpi, schema);
                 }
             } catch (Fault f) {



Mime
View raw message