In this series of posts we are going to show this points:
- Setting up the environtment
- Understanding a web service
- How to define the web services operations in a template class
- How to create the web service using maven and the template class
- How to package the web service using maven and deploy it.
- How to test the deployed web service using maven.
Now we are going to learn how to create a complete webservice based on a template class. This class is going to be a template with the name of the webservice, the operations (one simple, and one complex) and the input and output paramaters of each operation.
You can see in the picture the first steps that we need to create the webservice. To do this
- Create a Java class (an abstract class) with the operations and specify:
- Operation name
- Operation input parameters
- Operation output parameters
We are going to create two operations, one simple operations with basic data types and a second operation with a complex data type in the input and output parameters.
The result is this class
--- Axis2ServiceExample.java
---
---