If your Content-Type is set to ‘text/xml’ on the client service, then on the server side, you’ll receive your XML document as a ‘node’ object. You can pass this node object to ‘pub.web:documentToRecord’ to convert the node object to a record representing your XML, then you can pass this record to ‘pub.web:recordToDocument’ to convert the record back into an XML document.
Alternatively, you can perform XQL (XPath-like) or WQL queries against the ‘node’ object by passing the node to ‘pub.web:queryDocument’. For example, after passing the node to this service, click on the variables tab, and add the WQL statement ‘doc.src’ and assign the result to ‘xmldata’ as a String object, and you should get your original XML document. More examples can be found in the developer tool documentation.
#webMethods#Integration-Server-and-ESB#webmethods-Protocol-and-Transport