EditableSchema Project
The EditableSchema project contains two adapter configurations: EditableWSchemaReader.adfilesmodel and EditableWSchemaWriter.adfilesmodel. The sample project shows how the adapter adds fields to a line.
In EditableWSchemaReader.adfilesmodel, Publication Service parses the editableWSchema.txt file. Three positional file records (Identity, Item, and Cost) are defined to parse the type of lines found in the editableWSchema.txt file. Publication Service creates an object for each purchase order, item and cost, and publishes each object as a single message.
In EditableWSchemaWriter.adfilesmodel, Subscription Service receives the objects, formats them with an additional field that has DefaultID assigned to it, and writes them to the outeditableWSchema.txt file. The write schema is edited to include an extra field to the Cost record. Therefore, when Subscription Service writes the objects to an outeditablewrite.txt file, it adds a field to the Cost record, and sets the default value to DefaultCost.