Tuomas Toivonen
Tuomas Toivonen

Reputation: 23502

How to use WS-Security with Spring Boot and client stubs

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.

Upvotes: 0

Views: 60

Answers (0)

Related Questions