Issues that are not available for importing external webservices clients

Source: Internet
Author: User
Tags wsdl

Client stub file generation
1. How to generate Scripts
Go to AXIS2 's decompression directory under Bin (%axis2_home%\bin\) to execute the following statement
Wsdl2java-urihttp://localhost:8085/Axis2Service2/services/AxisService?wsdl-P Ws-s-o stub
The-p parameter specifies the package name of the generated Java class
The-o parameter specifies the root directory where the generated series of files are saved
Automatic generation of Axisservicestub.java in Stub\src\ws

2, plug-in generation mode
Select New->other->axis2 Code Generator in the IDE and click Next;
Tick generate Java source code from a WSDL file, click Next;
WSDL file location, input: HTTP://LOCALHOST:8085/AXIS2SERVICE2/SERVICES/AXISSERVICE?WSDL, click Next;
If the path is not correct, prompt: Specified WSDL is invalid!, please select a validated *.wsdl/*.xml file on previous page.



Error after importing generated Xxxstub.java file into project



1. Check if the jar package is imported


2. Replace all package names in the Xxxstub.java

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.