RosettaNet Module 7.1 SP2.October 2012 | Installing and Using webMethods RosettaNet Module | Installing and Using RosettaNet Module | Processing Large Business Documents | Configurations to Process Large Business Documents | Step 4: Customize the Outbound Mapping Service
 
Step 4: Customize the Outbound Mapping Service
You can either customize an existing mapping service or create a new one to handle large business documents. The following procedure describes how to customize an existing outbound mapping service.
*To customize the outbound mapping service
1. In Designer, invoke the wm.estd.common.tspace:createFile service to open a reservation in TSpace. This service returns a reservation object that points to a file on the file system.
2. Reading from the internal system, map the non-repeating parts of the PIP into an RNO in TSpace.
Note:
Write the PIP to TSpace in the order of the elements in the PIP. For example, if the non-repeating parts are at the end of a PIP, write the repeating parts to TSpace, first, and then write the non-repeating parts.
3. Next, invoke the pub.xml:getXMLNodeIterator service to map the repeating parts of the PIP into an RNO in TSpace. This service is used to loop over an array of IData objects. For information about this service, see webMethods Integration Server Built-In Services Reference.
4. Write the end tag that corresponds to the root tag of the business document.
5. Close the reservation in TSpace.
6. Invoke the wm.tn.doc:addContentPart service to prevent the reservation object you created from being garbage collected and to persist it to the BizDocEnvelope, which is already saved in the Trading Networks database.
7. Map the reservation object to the documents\Payload IData object.