Author Topic: Scripting: Import WSDL, XSD  (Read 2435 times)

zedbe

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Scripting: Import WSDL, XSD
« on: December 18, 2020, 04:18:36 am »
Hi,
I would like to ask if there is any possibility (VB, JS, Js...) of automatic file import - WSDL and XSD. I spent a day of searching google, guides, documentations, helps and no function found :(. Only found this topic (9 y.o.) https://www.sparxsystems.com/forums/smf/index.php/topic,3587.msg117141.html#msg117141

... guess feature request was not implemented? :) Can somebody confirm please?

(EA v13)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13240
  • Karma: +554/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Scripting: Import WSDL, XSD
« Reply #1 on: December 18, 2020, 05:20:44 am »
Have you tried EA.Project.ImportFile(). I think it's mainly meant for code files such as C# and Java, but maybe it works for XSD and WSDL as well.

https://www.sparxsystems.com/enterprise_architect_user_guide/15.2/automation/project_2.html

Generating XSD and WSDL from a script is definitely possible now.

Parsing the XSD or WSDL and creating the model in your script should not be too hard either

Geert

zedbe

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Scripting: Import WSDL, XSD
« Reply #2 on: December 22, 2020, 12:28:15 am »
TLDR; UPDATE: EA.Project.ImportFile() does not working, method really works only with source codes as mentioned  :'(

Thank you very much for the link to docu. I will try and hope the parser recognize wsdl/xsd as it would be clicked in EA environment. I don't see any other possibility right now.
Thank you again.

Z
« Last Edit: January 10, 2021, 12:22:29 am by zedbe »