Small sample applications to integration SOAP web services with Apache CXF into Spring Boot 2.
There are two independent applications:
-
soap-server
implements a SOAP based web service with the nameWeatherEndpoint
. The WSDL describing this web service is available athttp://127.0.0.1:8080/server/api/soap/WeatherEndpoint?wsdl
. The generation of the WSDL is done with thejaxws-maven-plugin
which only calls the JDKs default wsgen. -
soap-client
consumes theWeatherEndpoint
. Based on the WSDL provided by the server thejaxws-maven-plugin
is able to generate the web service stubs with the usage of the JDKs default wsimport. The client also provides a small REST endpoint to initiate a SOAP call to the server. This REST endpoint is available atGET http://127.0.0.1:8082/client/api/rest/weather
To build applications Java SE 9 and Maven 3.5.2 (or newer) needs to be installed.
The build is done with a simple:
mvn clean install
for the soap-server
and also for the soap-client
.
The applications could be started with:
java --add-modules java.xml.bind,java.xml.ws -jar target/<jar-name>.jar
The software of this repository is licensed under the GNU General Public License v2. See [LICENSE](https://www.gnu.org/licenses/gpl-2.0.html) for the full license text.
The JDK 9 modules java.xml.bind
are required java.xml.ws
to compile and run the applications.
<compilerArgs>
<arg>--add-modules</arg>
<arg>java.xml.bind,java.xml.ws</arg>
</compilerArgs>
File | Settings | Build, Execution, Deployment | Compiler | Java Compile
Additional command line parameters: --add-modules java.xml.bind,java.xml.ws