Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Abbo on May 22, 2007, 05:54:58 am
-
Hi,
I tried to use the Java Automation Interface API to generate an XSD. It boils down in using the methods:
boolean = Repository.GetProjectInterface().GenerateXSD(gUID, schemaFilePath, "ISO-8859-1", "");
Unfortunately, it always returns false (generation failed), while using the same values in the EA itself, it always succeeds. I cannot find any further error logging.
Does anyone have an idea what the cause of the problem is and/or where to look for extra error logging?
Thanks!
-
Check Project.GetLastError(), when GenerateXSD() returns false it either sets the last error to "Unknown package generating XSD Schema" or "Please specify output filename".
-
Simon,
thanks for your reaction. However, it tried it but it returns an empty string. Any other suggestions?