It is possible to get some validation errors by providing a WSDL2Reader
with an AssertionEventHandler.
WSDL2Factory factory = WSDL2Factory.newInstance();
WSDL2Reader reader = factory.getWSLD2Reader();
reader.setAssertionEventHandler(new AssertionEventHandler()
{ @Override public void handleEvent(AssertionEvent event) {
}});
When the reader has an AssertionEventHandler set, it executes a set of assertions found in
META-INF/services/org.inb.bsc.wsdl20.validator.Assertion
services
As you can see there are only few assertions implemented... :-(