our webservice is used by a system that is not sending the message id correctly. (not in the soap request at all!) I am looking for ways on how to add a message id if this is not
present in the actual call. If it is not present the entire call fails on the fact that a required property is not present.
Is there an easy way to accomplish this?
Found a solution here, but that doesn’t seem to work.
Came up with this solution which works for me: create an interceptor which checks for the MessageID header and adds it to the message if it doesn’t exist:
Define the interceptor in your Spring context:
Tested with CXF version 2.6.1.
More info on interceptors: http://cxf.apache.org/docs/interceptors.html