This content has been marked as final.
Show 3 replies
-
1. Re: JBOSS-WS SOAPHandler in chain no getContent method
spyhunter99 Mar 28, 2012 4:12 PM (in response to kenbarnes)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.
-
2. Re: JBOSS-WS SOAPHandler in chain no getContent method
kenbarnes Mar 29, 2012 8:23 AM (in response to spyhunter99)Thanks SpyHunter.
This allows me the string to the entire soap message, which I can do. But what I need is some way to gain access to the individual tags within the SOAPBody element and validate
based upon certain criteria( to be exact xml tags to avoid xml injection... yes its crazy). Is there a version that allows this function, or is there a way to gain access to the elements within the document?
Thanks
-
3. Re: JBOSS-WS SOAPHandler in chain no getContent method
spyhunter99 Mar 29, 2012 11:43 AM (in response to kenbarnes)messageContext.getMessage().getSOAPbody()
there's a number of accessors in that package