You’ll want to map in a String field into the document input. So using the example from the built-in services guide, the ‘document’ input will have the following structure:
| document |
|
@version |
1.0 |
|
@encoding |
UTF-8 |
|
AcctInfo |
whatever data you have |
The attrPrefix input defaults to @, but you can change it to something else. For example setting attrPrefix to __Attr, the encoding key would need to be changed to __Attrencoding to get it inserted as an attribute. The resulting XML string would be:
<?xml version="1.0" encoding="UTF-8"?>< AcctInfo/>
#Flow-and-Java-services#Integration-Server-and-ESB#webMethods