One option is to have the post specify a content type of text/plain (instead of text/xml). That way, the content handler won’t create a node object (not needed) and you can work with the string directly.
Another is to use pub.xml:queryXMLNode to get the source associated with the root node. I believe this will get you the unaltered XML string, but I’m not 100% certain. The XQL query would be /source()
Yet another would be to have the post specify application/octet, which would avoid converting the data to a string entirely. Your service would get a byte array, which could be wrapped with a stream.
Hopefully one of these will fit your needs.
#webMethods#Flow-and-Java-services#Integration-Server-and-ESB