-
Nov 28th, 2012, 01:08 AM
#1
Acquiring message payload from WebServiceMessage
Hi,
sorry for the newbie question but I'm writing an exception resolver extending AbstractEndpointExceptionResolver and I've ran into problems to acquire my message payloads as marshalled JAXB objects from WebServiceMessage.
My method is as follows:
@Override
protected boolean resolveExceptionInternal(MessageContext ctx, Object endpoint, Exception exception) {
...
WebServiceMessage message = ctx.getRequest();
if (message != null){
Source source = message.getPayloadSource();
Result result = message.getPayloadResult();
Both the Source and Result are instances of DOMSource. How do I acquire the payload as a marshalled JAXB object preferably without xslt?
My message factory is as follows:
<bean id="messageFactory" class="org.springframework.ws.soap.saaj.SaajSoapMe ssageFactory" />
Should I be using AxiomSoapMessageFactory instead?
Any pointers are appreciated!
-KP
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules