Giter VIP home page Giter VIP logo

spring-boot-soap's Introduction

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 name WeatherEndpoint. The WSDL describing this web service is available at http://127.0.0.1:8080/server/api/soap/WeatherEndpoint?wsdl. The generation of the WSDL is done with the jaxws-maven-plugin which only calls the JDKs default wsgen.

  • soap-client consumes the WeatherEndpoint. Based on the WSDL provided by the server the jaxws-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 at GET http://127.0.0.1:8082/client/api/rest/weather

Build applications

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.

Start applications

The applications could be started with:

java --add-modules java.xml.bind,java.xml.ws -jar target/<jar-name>.jar

Licensing

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.

JDK 9 modules

The JDK 9 modules java.xml.bind are required java.xml.ws to compile and run the applications.

Maven compile

<compilerArgs>
    <arg>--add-modules</arg>
    <arg>java.xml.bind,java.xml.ws</arg>
</compilerArgs>

IntelliJ compile

File | Settings | Build, Execution, Deployment | Compiler | Java Compile
Additional command line parameters: --add-modules java.xml.bind,java.xml.ws

Run with java

java --add-modules java.xml.bind,java.xml.ws -jar target/<jar-name>.jar

Run with IntelliJ

Edit Configurations…​
VM options: --add-modules java.xml.bind,java.xml.ws

spring-boot-soap's People

Contributors

nerdcoding avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.