0

I'm trying to understand how to use WS-Security with Spring Boot and client stubs generated from WSDL. My goal is to include WS-Security header with XML Signature to SOAP request with no code changes to generated clients. Inclusion of security header and signature must be configuration driven behaviour.

I know it's possible to use Wss4jSecurityInterceptor with Spring's WebServiceTemplate, but I want to use generated client stubs to call the service. With Spring, how to enable WS-Security in case of generated client stubs? I can use any maven plugin for client generation if that matters.

2
  • Why don't you use an interceptor to all request to add another layer check ? You will basically just call the WS soap client to make requests which will be intercepted. IT's also doable with Wss4jSecurityInterceptor . Commented Sep 25, 2024 at 18:48
  • If you are using generated clients you are using some sort of libary like Apache CXF, read the documentation of the library you are using to create the client stubs. Commented Sep 26, 2024 at 7:02

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.