0

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.

1
  • Do you need to consume a webservice as a client or implement a web service? Commented May 22, 2012 at 12:01

1 Answer 1

3

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

Sign up to request clarification or add additional context in comments.

Comments

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.