WSDLTypes wsdlTypes = wsdl.getWsdlTypes();
WSDLUtils.addSchemaModel(wsdlTypes, namespace, xsModel);
wsdl.registerNamespaceURI(namespace, null);
//Also get any custom namespaces
SchemaCreatorIntf schemaCreator = javaToXSD.getSchemaCreator();
mergeJavaWsdlMapping(schemaCreator.getJavaWsdlMapping());
//Register the global config namespaces
/*Map<String, String> nsmap = schemaCreator.getPackageNamespaceMap();
Set keys = nsmap != null ? nsmap.keySet() : null;
Iterator iter = (keys != null && !keys.isEmpty()) ? keys.iterator() : null;
while (iter != null && iter.hasNext())
{
String pkg = (String)iter.next();
String ns = nsmap.get(pkg);
if (ns != null)
wsdl.registerNamespaceURI(ns, null);
}*/
//Register the custom generated namespaces
Map<String, String> nsmap = schemaCreator.getCustomNamespaceMap();
Set keys = nsmap != null ? nsmap.keySet() : null;
Iterator iter = (keys != null && !keys.isEmpty()) ? keys.iterator() : null;
while (iter != null && iter.hasNext())
{
String prefix = (String)iter.next();