[jboss-user] [JBoss Web Services] - Re: Unable to priint the content of SOAPBody

do-not-reply at jboss.com do-not-reply at jboss.com
Tue Jan 4 10:29:24 EST 2011


andreas_back [http://community.jboss.org/people/andreas_back] created the discussion

"Re: Unable to priint the content of SOAPBody"

To view the discussion, visit: http://community.jboss.org/message/578735#578735

--------------------------------------------------------------
Hello!

Yes, the following code solved it for me

        MessageContext mc = webServiceContext.getMessageContext();
        SOAPMessage message = ((SOAPMessageContextJAXWS) mc).getMessage();
        ByteArrayOutputStream byteOut = new ByteArrayOutputStream();
        message.writeTo(byteOut);
        String request = new String(byteOut.toByteArray(), "UTF-8");

Greetings

Andreas
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/578735#578735]

Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110104/6d1caf68/attachment.html 


More information about the jboss-user mailing list