[jboss-dev-forums] [JBoss Web Services Development] - Access SOAP message content

oechevarria do-not-reply at jboss.com
Tue Nov 3 15:25:28 EST 2009


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.



View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263807#4263807

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263807



More information about the jboss-dev-forums mailing list