calling the WebService service deployed on IIS on Windows Server 2012 requires NTLM protocol authentication, in order to generate the client normally using CXF, the first thing to address is the need for Windows NT authentication, You can use an earlier open source Library jcifs.
<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>
expand = =NTLM is an abbreviation for NT LAN Manager, which also illustrates the source of the protocol. NTLM is the standard security protocol for earlier versions of Windows NT, and Windows 2000 supports NTLM to keepBackwards compatible. EarlySmbAgreement inInternetTo transmit the plaintext password. Later, the LAN Manager challenge/response authentication mechanism, called LM, was so simple that it was easily cracked. Microsoft has proposed a WindowsNT challenge/response verification mechanism, calledNtlm. There is now an updated NTLMV2 and Kerberos authentication system. NTLM is a Windows early security protocol that is retained for backward compatibility. NTLM is an abbreviation for NT LAN Manager, which is NT LAN Manager
NTLM Authentication Scheme for httphttp://www.innovation.ch/personal/ronald/ntlm.html
NTLM is a protocol that can make a single point in a domain, and JCISF can be implemented as a libraryhttp://www.cnblogs.com/adylee/archive/2007/11/28/975213.html
Using JCIFS for NTLM protocol authentication, generating WS access clients