We help IT Professionals succeed at work.

How to access MessageContext from AbstractMarshallingPayloadEndpoint

bhask12
bhask12 used Ask the Experts™
on
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.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
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.

Author

Commented:
This is the perfect solution to the problem