Announcement Announcement Module
Collapse
No announcement yet.
Acquiring message payload from WebServiceMessage Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #2
    I resolved this, sorry for the noise!

    -KP

    Comment

    Working...
    X