0 Replies Latest reply on Nov 3, 2009 3:25 PM by octavio echevarria

    Access SOAP message content

    octavio echevarria Newbie

      Hello, I have an implementation of a web service using the @WebServiceProvider annotation. This web service receives a SOAP message (via the public SOAPMessage invoke(SOAPMessage soapMessage) API).

      I am trying to get the contents of the message using the standard API calls such as
      SOAPPart soapPart = message.getSOAPPart();
      Source source = soapPart.getContent();

      However getSOAPPart() gives me what appears to be a partial message, i.e the contents of the body are empty even though the envelope and the header are good.

      Further, if I 'print' the message using an output stream I am able to see the entire message contents. Can anyone provide any clues as to what may be happening?

      I am using JBoss AS 5.1.0 and JBoss WS native 3.2.0 on Windows.