Learn WebService Fourth step: Generate WebService Client < primary > Using WSDL (URL)

Source: Internet
Author: User
Tags soap wsdl

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.