O'Reilly logo

Spring Security 3.x Cookbook by Anjana Mankale

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Integrating Spring Security with Apache CXF SOAP based web service

In this section, let's create a SOAP-based web service. We will demonstrate the integration of Spring Security with Apache CXF SOAP-based web service.

Creation of SOAP-based web service has become a simple process with Apache CXF.

Getting ready

  • Add the CXF-SOAP dependency to the pom file.
  • Add Spring Security-based dependency to the pom file.
  • Set up a SOAP-based web service with interface and an Impl class.
  • Configure the spring-security.xml file.
  • Add jars to the Tomcat_7.0/lib folder as a part of setup. Tomcat requires the following jar files in its lib folder to work with CXF web services. Absence of these jars can cause some errors:
    • streambuffer.jar
    • stax-ex
    • jaxws-ap-2.1
    • jaxws-rt

How to do ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required