Margaret,
couple of doubts,
Is your XML record structure created using DTD/Schema or manually?
If you have created the record structure manually then you should first create a record name as(asn_acknowledgment)which is the root or parent tag,followed by child tags or elements below:
<senderid>A341</senderid>
<ack_datetime>20010803</ack_datetime>
<invoice_num>A34101023399</invoice_num>
<resend_flag>N</resend_flag>.
Then using the recordReference on (<asn_acknowledgment>) map the appropriate data to the child elements.Finally the IDATA record will be in the pipe and invoke the recordToDocument Service and just follow my previous post about creating the xml Header tag and well formed document that will have starting with root tag as shown below.
<“1.0”?>
<asn_acknowledgment>
<senderid>A341</senderid>
<ack_datetime>20010803</ack_datetime>
<invoice_num>A34101023399</invoice_num>
<resend_flag>N</resend_flag>
</asn_acknowledgment>
HTH.
#Flow-and-Java-services#Integration-Server-and-ESB#webMethods