FileOutputStream stream = new FileOutputStream(file);
System.out.println("Generated WSDL for " + component.getName() + "/" + service.getName());
WSDLWriter writer = javax.wsdl.factory.WSDLFactory.newInstance().newWSDLWriter();
writer.writeWSDL(bindingWS.getWSDLDefinition().getDefinition(),stream);
} catch (Exception e) {
throw new WSDLGenerationException(e);
}
} else {
System.out.println(" No binding.ws" );
}
}