Custom Factories

User Rating:  / 5
Rate this article: PoorBest 


soapUI 4.0 introduces an extensive factory-based extension mechanism allowing you to add a large number of custom objects to soapUI, including TestSteps, Assertions, Editor Views, etc.To add a custom factory to soapUI you need to:

  1. Implement the desired factory interface and related classes
  2. Package the implementation in a jar file that you put in the soapUI\bin\ext folder
  3. Create an xml configuration file named XXX-factories.xml that registers the factory with soapUI
  4. Save the configuration file in a folder named "factories" in the soapUI\bin folder
  5. (Re)start soapUI

Here comes a list of all available factory extension points together with links to the corresponding javadoc


As mentioned above you will need to create an xml configuration file for registering your custom factories. A sample file is as follows:

   <factory id="..." factoryType="..." factoryClass="..."/>
   <factory id="..." factoryType="..." factoryClass="..."/>

The following attributes are required for each factory element:

For example


   <factory id="FileTransport" factoryType="com.eviware.soapui.impl.wsdl.submit.RequestTransportFactory" 

   <factory id="MyEditor" factoryType="" 


would register a custom RequestTransport and a custom Request Editor.

Be sure to save the file in the soapUI\bin\factories folder (create it if missing) and restart soapUI to active your custom factories.