I haven’t tried it myself yet, but it sounds like you want to use “Query Functions at Root Level” as documented in the manual …/servext/setypes.htm#seqfxml
Quoting from the manual:
This is as if a query function were entered instead of an XML query.
Examples:
MySubString(‘abcdefg’,2,4)
MyFunc(‘Hello’,/a/b,12)
At such a location the function is called just once and the return value is inserted into the Tamino response document.
Bill
#webMethods#Tamino#API-Management