I just did a test on my side, the issue is that in the case of application/xml you get an xml node as input called node.
You need to first invoke the service ‘pub.xml:xmlNodeToDocument’
Careful when mapping the output document as it represents all the possible inputs, your doc will be a child element.
regards
John.
#webMethods#Integration-Server-and-ESB