.getSourceAsStream(schemaSrc);
SchemaDocument.Schema schema = null;
if (schemaSrc.endsWith(".wsdl") || schemaSrc.endsWith(".WSDL")) {
DefinitionsDocument defDoc =
DefinitionsDocument.Factory.parse(stream);
TTypes tt = defDoc.getDefinitions().getTypesArray(0);
XmlObject[] kids = selectChildren
(tt, SchemaDocument.Schema.class);
SchemaDocument.Schema[] schemas =
new SchemaDocument.Schema[kids.length];