This is a simple CRUD (Create, Read, Update, and Delete) java app β with SOAP protocol π
- Java β with Spring framework π
- H2 Database ποΈ
- wsdl4j (Web Services Description Language for Java)
- SoapUI tool for testing web services βοΈ
- JAVA 17
- Spring framework 3.2.5
Dependencies in pom.xml
- H2 database :
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>runtime</scope>
</dependency>
- wsdl4j :
<dependency>
<groupId>wsdl4j</groupId>
<artifactId>wsdl4j</artifactId>
</dependency>
Plugins in pom.xml
- xjc :
<execution>
<id>xjc</id>
<goals>
<goal>xjc</goal>
</goals>
</execution>
Configuration in pom.xml
<configuration>
<sources>
<source>${project.basedir}/src/main/resources/person.xsd</source>
</sources>
</configuration>
- After build application with using maven, run app by click π’ :
- Open SoapUI to test api :
- Create new SAOP project and paste the URL path of WSDL file :
and the path of WSDL file is :
http://localhost:8080/ws/person.wsdl
- imported methods from WSDL file :
- POST method :
- GET method :