What database are you using?
DB2 provides a SELECT FROM INSERT construct that does what you’re looking for.
Oracle has PL/SQL that could be used in a stored proc that can use INSERT…RETURNING construct. Then your service could call that proc.
Other DBs may have similar facilities.
The risk with the IDENTITY feature is that is probably not safe in an environment using concurrent inserts.
#webMethods#Adapters-and-E-Standards#Integration-Server-and-ESB