question

Apilak M avatar image
0 Likes"
Apilak M asked Ben Wilson commented

Is it possible to call FlexSIM instance and make it autorun by ASP.NET

FlexSim 21.1.0
flexsim 21.1.0i need to working with flexsim on asp.net run on iis to
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @Apilak M, was your question answered? If so, please click the red "Accept" button at the bottom of one of the answers below. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·
Joerg Vogel avatar image
1 Like"
Joerg Vogel answered Apilak M commented
· 5
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Apilak M avatar image Apilak M commented ·

Externally, I did deploy FlexSIM 2021 on Microsoft IIS 10, and plan to call FlexSIM via ASP.NET on Chrome browser and looking forward to operate with an item in those instance such as set an initial value for a source item for the instance.

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Apilak M commented ·

Then this is a different question, because you are running a Webserver to get access by a browser. Please look into the manual for first steps. Reference > Developer and Advanced User Reference > Webserver

0 Likes 0 ·
Apilak M avatar image Apilak M Joerg Vogel commented ·

Hi Jorg Vogel; I did working with the FlexSim Webserver already, but I'm looking to working with IIS and others web programming language like ASP.NET, PHP, JAVA etc., I'm not sure that the FlexSim Webserver did support others web programming language or not, I will chasing the info. per your comment and maybe will have questions per my objective after that, thank you.

0 Likes 0 ·
Show more comments
Ben Wilson avatar image
0 Likes"
Ben Wilson answered Apilak M commented

Hi @Apilak M,

It sounds like you'll maintain two different servers (or two separate services on the same server). The first is your custom web application built on ASP.NET, or whatever your backend of choice. This app can make queries against a FlexSim Webserver instance, either from the frontend or the backend.

For example, on the frontend of things, a user would load your ASP.NET site in their browser. A page would load and could include some JavaScript that makes XMLHttpRequest (XHR) queries to the FlexSim Webserver, and handle the response data in some way. These XHR queries could happen automatically on page load, or due to some user interaction like a button or link.

Or on the backend: a user would load your ASP.NET site. As the server generates the page to send to the user, it could make cURL requests or similar to the FlexSim Webserver. Whatever data is returned by FlexSim may be integrated into the response that is sent by the ASP.NET application back to the client.

You can read in the webserver documentation about creating custom queries in your model. Using these, your model can respond to any query needed by your front- or back-end code, with whatever data you choose to send, in whatever format you need. It is up to you to program those query handlers into your FlexSim model. See the Instance Queries heading under Developing Custom Web Interfaces.

Be sure to review the entire Webserver documentation page, as all of the info there will be useful.

Comment back with any specific questions.

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Apilak M avatar image Apilak M commented ·

Hi Ben, your recommendation is point to the same thing that Mr. Jörg Vogel mentioned, let me summarize and try then will revert if any, Thank you for you response.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.