Using this method | Follow this procedure |
XML File | 1. Supply the data that includes all entries for the dictionary you want to create by creating an XML file that contains the data and that conforms to the XML schema: Integration Server_directory \instances\instance_name\packages\WmFlatFile\pub\FFGeneration.xsd 2. Retrieve the contents of the XML file as an XML string. For more information, see Creating a Service that Retrieves the XML
File. 3. Create the dictionary in the Integration Server namespace by invoking the pub.flatFile.generate:saveXMLAsFFDictionary service. |
Mapping Data | 1. Map the data for all entries for the dictionary you want to create to an IData object that conforms to the pub.flatFile.generate:FFDictionary IS document type. 2. Convert the IData object to an XML string by invoking the pub.xml:documentToXMLString service. When you invoke this service: Set the encode input variable to true. Set the documentTypeName input variable to pub.flatFile.gnerate:FFDictionary. For more information about the pub.xml:documentToXMLString service, see the webMethods Integration Server Built-In Services Reference. 3. Create the dictionary in the Integration Server namespace by invoking the pub.flatFile.generate:saveXMLAsFFDictionary service. |