Chris
Chris

Reputation: 6621

How to add a SOAP header via JAX-WS?

Our system requires adding some header information in the SOAP message. So how does this be implemented by JAX-WS. I know one way to achieve this is adding @WebParam(name = "login", header = true), but this solution is not what we want. We want one solution which doesn't need to change the endpoint interface.

Upvotes: 0

Views: 437

Answers (1)

yousafsajjad
yousafsajjad

Reputation: 983

You would need to write an interceptor which will implement SOAPHandler to intercept the request.

Upvotes: 3

Related Questions