@Test public void validationDisabled() throws Exception { when(request.getInputStream()).thenReturn( new TestServletInputStream(buildSoapMessage(null, firstOpInDuplicate, null, null))); when(request.getScheme()).thenReturn("http"); soapCommandProcessor.setSchemaValidationEnabled(false); soapCommandProcessor.process(command); ev.getObserver().onResult(new ExecutionResult("goodbye")); assertEquals(CommandStatus.Complete, command.getStatus()); assertSoapyEquals(buildSoapMessage(null, firstOpOut, null, null), testOut.getOutput()); verify(response).setContentType(MediaType.TEXT_XML); verify(logger).logAccess(eq(command), isA(ExecutionContext.class), anyLong(), anyLong(), any(MediaType.class), any(MediaType.class), any(ResponseCode.class)); verifyTracerCalls(firstOpKey); }
@ManagedAttribute public void setSchemaValidationEnabled(boolean schemaValidationEnabled) { this.schemaValidationEnabled = schemaValidationEnabled; }
SoapTransportCommandProcessor extends AbstractTerminateableHttpCommandProcessor<OMElement> { @ManagedAttribute public void setSchemaValidationEnabled(boolean schemaValidationEnabled) { this.schemaValidationEnabled = schemaValidationEnabled; } }
SoapTransportCommandProcessor extends AbstractTerminateableHttpCommandProcessor<OMElement> { @ManagedAttribute public void setSchemaValidationEnabled(boolean schemaValidationEnabled) { this.schemaValidationEnabled = schemaValidationEnabled; } SoapTransportCommandProcessor(DehydratedExecutionContextResolution contextResolution, String requestTimeoutHeader, SchemaValidationFailureParser schemaValidationFailureParser); }
SoapTransportCommandProcessor extends AbstractTerminateableHttpCommandProcessor<OMElement> { @ManagedAttribute public void setSchemaValidationEnabled(boolean schemaValidationEnabled) { this.schemaValidationEnabled = schemaValidationEnabled; } SoapTransportCommandProcessor(DehydratedExecutionContextResolution contextResolution, String requestTimeoutHeader, SchemaValidationFailureParser schemaValidationFailureParser); @ManagedAttribute boolean isSchemaValidationEnabled(); @ManagedAttribute void setSchemaValidationEnabled(boolean schemaValidationEnabled); @Override void onCougarStart(); }
SoapTransportCommandProcessor extends AbstractTerminateableHttpCommandProcessor<OMElement> { @ManagedAttribute public void setSchemaValidationEnabled(boolean schemaValidationEnabled) { this.schemaValidationEnabled = schemaValidationEnabled; } SoapTransportCommandProcessor(DehydratedExecutionContextResolution contextResolution, String requestTimeoutHeader, SchemaValidationFailureParser schemaValidationFailureParser); @ManagedAttribute boolean isSchemaValidationEnabled(); @ManagedAttribute void setSchemaValidationEnabled(boolean schemaValidationEnabled); @Override void onCougarStart();  }