-
I use VS code to create a maven spring boot project with two dependencies : spring-boot-starter-web , spring-boot-starter-web-services
-
put wsdl document in our project in the path: ...src\main\resources\wsdl( after gics deplyment on your server you can see this document in the url like "http://serverIP:8080/gics/gicsService?wsdl"
-
add this plugin to generate stubs (please look pom.xml) :
also these :
com.sun.xml.bind jaxb-core 2.3.0.1 <dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.3.1</version>
</dependency>
<dependency>
<groupId>org.javassist</groupId>
<artifactId>javassist</artifactId>
<version>3.25.0-GA</version>
</dependency>
4. for every service we should create class, config and controller files , I put one service "getDomain" .
we should be careful about class difinition according to each gics service's input arguments and type of output and use them in it's controller .
for example: the type of "getDomain" output is "DomainDTO"