*
* @param descriptor WebServices descriptor
*/
public void check(Descriptor descriptor) throws Exception {
WebServicesDescriptor rootDescriptor = (WebServicesDescriptor) descriptor;
ArchiveType moduleType = rootDescriptor.getBundleDescriptor()
.getModuleType();
if (moduleType != null && moduleType.equals(DOLUtils.ejbType()))
moduleName = Result.EJB;
else if (moduleType != null && moduleType.equals(DOLUtils.warType()))
moduleName = Result.WEB;
for (Iterator itr = rootDescriptor.getWebServices().iterator();
itr.hasNext();) {
WebService wsDescriptor = (WebService) itr.next();
// need to pass WebServiceEndpoint's to check