type = SchemaUtils.getInstance().getSchemaBasicType(xmlType.getLocalPart());
else
type = schemaModel.getTypeDefinition(xmlType.getLocalPart(), namespaceURI);
WSSchemaUtils utils = WSSchemaUtils.getInstance(schemaModel.getNamespaceRegistry(), null);
JBossXSElementDeclaration element =
utils.createGlobalXSElementDeclaration(xmlName.getLocalPart(), type, xmlName.getNamespaceURI());
schemaModel.addXSElementDeclaration(element);
wsdl.registerNamespaceURI(xmlName.getNamespaceURI(), null);
}