Creation of new Description object is quite simple:
WSDL2Factory factory = WSDL2Factory.newInstance(); Description description = factory.newDescription();
Note that any description must have its targetNamespace defined:
description.setTargetNamespace(URI.create("http://myorganization.org"));
This targetNamespace is used as a namespace for top-level components.
Creation of all top-level components such as Interface, Binding, Service etc...
is done through this Description component.
Note that this is a general rule in the API, so any component is created through its parent.
Interface _interface = description.addInterface("my_interface"); Binding binding = description.addBinding("my_binding"); Service service = description.addService("my_service");