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

  • Acquiring message payload from WebServiceMessage


    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:
    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=" ssageFactory" />

    Should I be using AxiomSoapMessageFactory instead?

    Any pointers are appreciated!


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