Author Topic: Generate XSD from Java  (Read 861 times)

Abbo

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Generate XSD from Java
« 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!

Simon M

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 6410
  • Karma: +54/-6
    • View Profile
Re: Generate XSD from Java
« Reply #1 on: May 22, 2007, 01:56:29 pm »
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

support@sparxsystems.com

Abbo

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Generate XSD from Java
« Reply #2 on: May 23, 2007, 06:44:14 am »
Simon,
thanks for your reaction. However, it tried it but it returns an empty string. Any other suggestions?