Recently, the project needed to use an invoicing interface, but the other party actually used the way of webService invocation, while we used SpringBoot
After the 2019 version of IDEA, there is no integrated WebService displayed. As a result, I have looked for many ways, but I have not explained in detail how to deal with it. Just to make it clear, I would like to write down a note
My IDEA version 2020.1, JDK1.8 project environment :Springboot
1. Create a Module and select Apach Axis
2. Click Next, enter the project name, and click Finish
3. The following interface appears, check the code to be generated, here must be careful to check all, especially the test class code, so that you can directly test whether the code generated OK
4. The following code is generated, where the test class is placed in the test module
5. Test, directly find the corresponding test method, Debug run to confirm whether the code generated OK
6. During the final debugging of the project, some Maven dependencies were found missing
<dependency> <groupId>org.apache. Axis </groupId> <artifactId> Axis </artifactId> <version>1.4</version> </dependency> < the dependency > < groupId > javax.mail. XML. RPC < / groupId > < artifactId > javax.mail. XML. RPC - API < / artifactId > < version > 1.1.2 < / version > </dependency> <dependency> <groupId>commons-discovery</groupId> <artifactId>commons-discovery</artifactId> The < version > 0.4 < / version > < / dependency >Copy the code