Results 1 to 2 of 2

Thread: Acquiring message payload from WebServiceMessage

  1. #1
    Join Date
    Nov 2012
    Posts
    2

    Default 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. #2
    Join Date
    Nov 2012
    Posts
    2

    Default

    I resolved this, sorry for the noise!

    -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
  •