I used the simplest method of using the JDK command wsimport-keep-p package path- d code to store the location wsdl URL
Blue is the command, Pink is the storage location , Orange is the URL
C:\Program files\ibm\sqllib\java\jdk\bin>wsimport-keep-p com.demo.client -D C:\Users\IBM_ADMIN\Documents\MyWorking\WebService\WSDL2JAVA Http://ws.webxml.com.cn/WebServices/MobileCodeWS.asmx?WSDL
Parsing WSDL ...
[WARNING] Ignoring soap port "MOBILECODEWSSOAP12": it uses non-standard SOAP 1.2 binding.
You must specify the '-extension ' option to use this binding.
Line 199 of Http://ws.webxml.com.cn/WebServices/MobileCodeWS.asmx?WSDL
[WARNING] Ignoring port "Mobilecodewshttpget": no SOAP address specified. Try running wsimport with-extension switch.
Line 202 of Http://ws.webxml.com.cn/WebServices/MobileCodeWS.asmx?WSDL
[WARNING] Ignoring port "mobilecodewshttppost": no SOAP address specified. Try running wsimport with-extension switch.
Line 205 of Http://ws.webxml.com.cn/WebServices/MobileCodeWS.asmx?WSDL
Generating code ...
Compiling code ...
C:\Program files\ibm\sqllib\java\jdk\bin>
I use this URL:Http://ws.webxml.com.cn/WebServices/MobileCodeWS.asmx?WSDL (This is a free service, you can use, 30 times a day)
Generate the following file, where the Java file is my next use, class file is said to be directly packaged (not tried)
Learn WebService Fourth step: Generate WebService Client < primary > Using WSDL (URL)