Steps to participate in the new WSDL Wizard Concrete Configuration:
There are four steps to participate in the configuration panel:
- Step 1: Create a template.xml based on templates.xsd (checked in at C:/nb_all/xml.wsdlui/src/org/netbeans/modules/xml/wsdl/ui/view/wizard/xsd/templates.xsd)
- Step 2: Add wsdl editor as dependent module.
- Step 3: Implement the SPI (service provider interface)
org.netbeans.modules.xml.wsdl.ui.spi.ExtensibilityElementTemplateProvider {
/** Get the inputstream for the service provider's template.xml*/
public abstract InputStream getTemplateInputStream();
/** Resolves I18N messages from service provider's bundle.properties*/
public abstract String getLocalizedMessage(String str, Object[] objects);
}
- Step 4: Expose the SPI using META-INF/Services
Display names are generated by prefixing TEMPLATE_name_ and TEMPLATEGROUP_name_ of the template's name attribute.
Return the appropriate message from the getLocalizedMessage api call.
Sample implementation can be found at
- For Step 1 above, see C:\nb_all\xml.wsdlextui\src\org\netbeans\modules\xml\wsdlextui\template\template.xml
- For Step 2 above, see xml snippert below in c:\nb_all\xml.wsdlextui\nbproject\project.xml
<dependency>
<code-name-base>org.netbeans.modules.xml.wsdlui</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<specification-version>1.1</specification-version>
</run-dependency>
</dependency>
- For Step 3 above, see C:\nb_all\xml.wsdlextui\src\org\netbeans\modules\xml\wsdlextui\template\SoapTemplateProvider.java
- For Step 4 above, see C:\nb_all\xml.wsdlextui\src\META-INF\services\org.netbeans.modules.xml.wsdl.ui.spi.ExtensibilityElementTemplateProvider