WSDLExtensibilityElement extensiblityElt = null;
for (int i = 0; i < typesArray.size(); i++) {
extensiblityElt = (WSDLExtensibilityElement) typesArray.get(i);
Vector xmlObjectsVector = new Vector();
XmlSchemaCollection schemaColl = new XmlSchemaCollection();
Schema schema = null;
if (ExtensionConstants.SCHEMA.equals(extensiblityElt.getType())) {
schema = (Schema) extensiblityElt;
Map inScopeNS = configuration.getWom().getNamespaces();
for (Iterator it = inScopeNS.keySet().iterator(); it.hasNext();) {
String prefix = (String) it.next();
schemaColl.mapNamespace(prefix,
(String)inScopeNS.get(prefix));
}
Stack importedSchemaStack = schema.getImportedSchemaStack();
//compile these schemas
while (!importedSchemaStack.isEmpty()) {
Element el = ((javax.wsdl.extensions.schema.Schema)importedSchemaStack.pop()).getElement();
XmlSchema thisSchema = schemaColl.read(el);
xmlObjectsVector.add(thisSchema);
}
}
//create the type mapper