If you dont want to see xml version and encoding
after you use documentToRecord proceed this way.
In the documentToRecord of (service OutPut)which is boundNode under this copy the root of the the out put record child you are generating example(shipNotice or Purchaseorder xml),
and map to the piplelineOutput record.
Example:
<?xml version="1.0" encoding="UTF-8" ?>
map the ShipNotice record under the boundNode
I tested trying this and this works me.
Try it out at your end.
Cheers.
#webMethods#webMethods-General#Integration-Server-and-ESB