String[] arguments = Axis2BuilderUtil.buildArguments(classPath, sei, bindingType, moduleBaseDir, portInfo);
log.info("wsgen - Generating WSDL with SOAP 1.1 binding type, based on type " + bindingType);
try {
URLClassLoader loader = new URLClassLoader(urls, ClassLoader.getSystemClassLoader());
Class clazz = loader.loadClass("com.sun.tools.ws.spi.WSToolsObjectFactory");
Method method = clazz.getMethod("newInstance");
Object factory = method.invoke(null);
Method method2 = clazz.getMethod("wsgen", OutputStream.class, String[].class);
OutputStream os = new ByteArrayOutputStream();
Boolean result = (Boolean) method2.invoke(factory, os, arguments);