throw new DeploymentException("WSDL must be specified for @WebServiceProvider service " + serviceName);
}
LOG.debug("Service " + serviceName + " does not have WSDL. Generating WSDL...");
WsdlGenerator generator = new WsdlGenerator();
generator.setSunSAAJ();
JaxWsImplementorInfo serviceInfo = new JaxWsImplementorInfo(serviceClass);
// set wsdl service
if (portInfo.getWsdlService() == null) {
generator.setWsdlService(serviceInfo.getServiceName());
} else {
generator.setWsdlService(portInfo.getWsdlService());
}
// set wsdl port
if (portInfo.getWsdlPort() != null) {
generator.setWsdlPort(portInfo.getWsdlPort());
}
String wsdlFile = generator.generateWsdl(module, serviceClass.getName(), module.getEarContext(), portInfo);
portInfo.setWsdlFile(wsdlFile);
LOG.debug("Generated " + wsdlFile + " for service " + serviceName);
}