Code Monkey home page Code Monkey logo

soap-webservices-example's Introduction

Soap Web Services with Spring Boot

A simple example of Soap Web Service which gives an option to view information about JavaScript and Java courses available and also an option to delete courses.

Stepwise implementation

  1. Create an xsd (XML Schema Definition) file in Resources folder, after deciding the request and response xml structure (for reference you can checkout xml-files folder).
  2. Use JAXB2 (Java Architecture for XML Binding) Maven plugin to generate Java classes corresponding to XML elements.
  3. Define endpoints for all functionalities suck as getting course information by id, getting all courses information..etc.
  4. Configure Spring Web Services using Message Dispatcher Servlet for simplified dispatching of web services messages. Also configure Spring Web Services Configuration class to generate WSDL using DefaultWsdl11Definition class. Define a bean that returns XsdSchema to an endpoint.
  5. Inject a service to get course details from the endpoint. Define getCourseById, getCourseDetails,... methods in the service. Call this service in Endpoint class to get course details.
  6. For adding security - Download spring-ws-security jar. Create an XwsSecurityInteceptor bean which has a callback handler that defines the action needed to be taken after request interception. Then add it to the list of interceptors.

soap-webservices-example's People

Contributors

sakshi-011 avatar

Watchers

 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.