if (packages != null && packages.size() > 0) {
packageList.addAll(packages);
}
//Read All Schema Definition in wsdl;
Types types = wsdlDefinition.getTypes();
if (types == null) {
if (log.isDebugEnabled()) {
log.debug("WARNING: Could not find any Schema/Types from WSDL");
log.debug("no packages will derived from WSDL schema");
}
return packageList;
}
List extensibilityElements = types.getExtensibilityElements();
for (Object obj : extensibilityElements) {
if (obj != null && isSchema((ExtensibilityElement)obj)) {
Schema schema = (Schema)obj;
//process schemas and read packages from them.
processSchema(schema, schemaList, packageList);