WSDLEditor.SchemaValidation
Steps for providing schema validation for extensibility elements:
This is only for schema validation.
Semantic validator should be created separately.
Refer to soap implementation at
C:\nb_all\xml.wsdlextui\src\org\netbeans\modules\xml\wsdlextui\property\SOAPValidatorSchemaFactory.java
Interface:
org.netbeans.modules.xml.wsdl.validator.spi.ValidatorSchemaFactory {
/**
* Returns the targetnamespace of the schema
*/
public abstract String getNamespaceURI();
/**
* Returns the Inputstream related to this schema
*/
public abstract InputStream getSchemaInputStream();
}
- Add module dependency to wsdleditor
- Implement the above methods in a class
- Create a folder called META-INF/Services
- Create a file by name org.netbeans.modules.xml.wsdl.validator.spi.ValidatorSchemaFactory
- Add the line for your Validatorschemafactory class in this above file
For example look at C:\nb_all\xml.wsdlextui\src\META-INF\services\org.netbeans.modules.xml.wsdl.validator.spi.ValidatorSchemaFactory
and org.netbeans.modules.xml.wsdlextui.property.SOAPValidatorSchemaFactory
Once this is done, compile your module.
When you restart netbeans, you should be able to validate extensibility elements that can be validated by your schema.

