We help IT Professionals succeed at work.

How to access MessageContext from AbstractMarshallingPayloadEndpoint

bhask12 used Ask the Experts™
I am extending AbstractMarshallingPayloadEndpoint for my endpoint and defining the method invokeInternal. I need to get the messagecontext so that I can attach a PDF file to the SOAP message.
I couldn't find any method that exposes messagecontext please advice.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Never Mind,   I found the solution to my question, All I did to get the message context is Override the method onMarshalResponse from AbstractMarshallingPayloadEndpoint in my endpoint.
This is a callback method, is called after standard marshalling.


This is the perfect solution to the problem