<span style="font-size:14px;">public static void main(String[] args) { Config.registerSmbURLHandler(); String domain = "domain"; String user = "username"; String password = "password"; Config.setProperty("jcifs.smb.client.domain", domain); Config.setProperty("jcifs.smb.client.username", user); Config.setProperty("jcifs.smb.client.password", password); try { Config.setProperty("jcifs.netbios.hostname", Config.getProperty("jcifs.netbios.hostname", InetAddress.getLocalHost().getHostName())); org.apache.cxf.tools.wsdlto.WSDLToJava.main( new String[]{ "-p", "com.test", "-d", "c:\\test", "-client", "http://test.com/ws?wsdl" }); } catch (Exception ex) { ex.printStackTrace(); } }</span>
原文:http://blog.csdn.net/shierqu/article/details/45400075