Book a Demo

Author Topic: Calling API in ASP.net  (Read 6040 times)

KNVB

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Calling API in ASP.net
« on: May 04, 2017, 04:01:17 pm »
Dear all

Is it possible to call enterprise architect API in ASP.net?

I need to create a web page for user to trace the relationship between elements.
I have tried to call EA API in ASP.net, however, it very slow and the web page cannot be access from other computer.

Would you tell me what should I do?

thank you very much

Sunshine

  • EA Practitioner
  • ***
  • Posts: 1353
  • Karma: +121/-10
  • Its the results that count
    • View Profile
Re: Calling API in ASP.net
« Reply #1 on: May 04, 2017, 07:46:56 pm »
Possible because its .NET and the API can be accessed by it but not a good idea. ASP.Net is meant to run on a server. The Sparx EA API is part of the client that is designed to run on desktop/laptop. You could install Sparx EA on a server to make the API available to the ASP.Net. Just because you could doesn't mean you should. If you did you are like to have some performance or scaleability issues.

You might have to wait for Sparx Systems to release the pro cloud and web EA products.
Happy to help
:)

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Calling API in ASP.net
« Reply #2 on: May 05, 2017, 08:30:23 am »
I need to create a web page for user to trace the relationship between elements.
I have tried to call EA API in ASP.net, however, it very slow and the web page cannot be access from other computer.
Doing this would violate the license agreement.

KNVB

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: Calling API in ASP.net
« Reply #3 on: May 05, 2017, 05:21:08 pm »
I need to create a web page for user to trace the relationship between elements.
I have tried to call EA API in ASP.net, however, it very slow and the web page cannot be access from other computer.
Doing this would violate the license agreement.
How about if I push the project to database, then I query the related database table using other development tool (e.g. java)?
If this approach still violate the license agreement, is there any solution to fulfill my boss requirement?
The Element.GetRelationSet method is just what I need to complete my task?

thank you very much