throws AssertionException {
WsdlContext wsdlContext;
try {
wsdlContext = (WsdlContext) getWsdlContext((WsdlMessageExchange) messageExchange, context);
} catch (Exception e1) {
throw new AssertionException(new AssertionError(e1.getMessage()));
}
WsdlValidator validator = new WsdlValidator(wsdlContext);
try {
AssertionError[] errors = validator.assertRequest((WsdlMessageExchange) messageExchange, false);
if (errors.length > 0) {
throw new AssertionException(errors);
}
} catch (AssertionException e) {
throw e;
} catch (Exception e) {
throw new AssertionException(new AssertionError(e.getMessage()));
}
return "Schema compliance OK";
}