ByteArrayOutputStream b = new ByteArrayOutputStream();
messageContext.getMessage().writeTo(b);
String text = b.toString();
As a word of caution, make sure this is in a try caught and check for nulls.
Reply to this message by going to Community
Start a new discussion in JBoss Web Services at Community