BadrOuaddah / SOAP-CRUD

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SOAP-CRUD (Simple Object Access Protocol)

This is a simple CRUD (Create, Read, Update, and Delete) java app β˜• with SOAP protocol 🌐

Frameworks and libraries.

  • Java β˜• with Spring framework πŸƒ
  • H2 Database πŸ—ƒοΈ
  • wsdl4j (Web Services Description Language for Java)
  • SoapUI tool for testing web services βš™οΈ

Prerequisites.

  • JAVA 17
  • Spring framework 3.2.5

Maven.

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>

Demonstration.

  • After build application with using maven, run app by click 🟒 :

image

  • Open SoapUI to test api :

image

  • Create new SAOP project and paste the URL path of WSDL file :

image

and the path of WSDL file is :

http://localhost:8080/ws/person.wsdl
  • imported methods from WSDL file :

image

Here some methods

  • POST method :

image

  • GET method :

image

About


Languages

Language:Java 100.0%