I am trying to use convertToString to create an EDI file. The service takes a document T810DT, which is created from EDIFFSchema T810. In the schema, some fields have length constraints. So if I have some bad data in the input T810DT, it won’t create an EDI string. I have two questions:
-
Can we generate an XML schema out of the flat file schema so that the length constraits will be usable? ( then I could convert the T810DT to an XML node and then validate it against the xml schema to catch the bad data)
-
Why is the errorArray always null even something wrong really happens in convertToString?
Thanks!