Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.4.4, 3.3.11
-
None
-
Unknown
Description
It seems like we don't need to check the schema enabled flag and get schema on every iteration for a SoapHeder.
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) { if (!isRequestor(message)) { f.setFaultCode(Fault.FAULT_CODE_CLIENT); } throw f; } ... }
Removing these actions outside of the loop can provide a slight performance improvement if multiple headers are present in a request.
Attachments
Issue Links
- links to