* @return Returns XmlSchema.
* @throws Exception
*/
public Collection buildWSDLTypes() throws Exception {
JamServiceFactory factory = JamServiceFactory.getInstance();
JamServiceParams jam_service_parms = factory.createServiceParams();
// setting the classLoder
// jam_service_parms.setParentClassLoader(factory.createJamClassLoader(classLoader));
// it can posible to add the classLoader as well
jam_service_parms.addClassLoader(generationParams.getClassLoader());
jam_service_parms.includeClass(generationParams.getSourceClassName());
for (int count = 0; count < generationParams.getExtraClasses().size(); ++count) {
jam_service_parms.includeClass((String)generationParams.getExtraClasses().get(count));
}
JamService service = factory.createService(jam_service_parms);
QName extraSchemaTypeName = null;
JamClassIterator jClassIter = service.getClasses();