Menu

validator

redmitry

WSDL 2.0 file validation

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... :-(


Related

Wiki: Home

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.