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\


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();
  1. Add module dependency to wsdleditor
  2. Implement the above methods in a class
  3. Create a folder called META-INF/Services
  4. Create a file by name org.netbeans.modules.xml.wsdl.validator.spi.ValidatorSchemaFactory
  5. 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

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.

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo