Definitions def = new Definitions(service.getPortTypeName(), service.getBindingName(), service.getServiceName(),
service.getPortName(), "tns", wns);
def.setServiceLocation(service.getServiceAddress());
// add service documentation if available
IClassLocator locator = m_generationParameters.getLocator();
IClass info = locator.getClassInfo(service.getClassName());
if (info != null) {
List nodes = m_generationParameters.getWsdlCustom().getFormatter(service).docToNodes(info.getJavaDoc());
def.setPortTypeDocumentation(nodes);
}