ZipEntry entry;
String entryName = "";
Schema schema;
Types types = new TypesImpl();
definition.setTypes(types);
while ((entry = zipInputStream.getNextEntry()) != null) {
entryName = entry.getName();
if (entryName.startsWith(XMLBeansExtension.SCHEMA_FOLDER) && entryName.endsWith(".xsd")) {
InputStream schemaEntry = axisService.getClassLoader().getResourceAsStream(entryName);
schema = new SchemaImpl();
Document document = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(schemaEntry);
schema.setElement(document.getDocumentElement());
types.addExtensibilityElement(schema);
}
}
} catch (IOException e) {
throw new AxisFault(e);
} catch (ParserConfigurationException e) {