HTML5 Gateway API

Discussion in 'Parallels Remote Application Server – HTML5 Gateway' started by JoseS7, Mar 14, 2019.

  1. JoseS7

    JoseS7 Bit poster

    Messages:
    4
    How can we embed the HTML client in our own web service?
    Is there any tutorial showing how it can be made?
    How should the requests be made using the HTML5 Gateway API through our web service? And how to select the desired application or remote desktop to launch?

    Thanks in advance
     
  2. Eugene. K.

    Eugene. K. Parallels Team

    Messages:
    124
  3. JoseS7

    JoseS7 Bit poster

    Messages:
    4
    Thanks for your response
    I've seen that section of the documentaion. I just don't understand how or wherefrom to send the request to automatically launch an application or remote desktop from inside my web service
     
  4. Eugene. K.

    Eugene. K. Parallels Team

    Messages:
    124
    I took a look again at the guide and I agree there is a place for improvements :) I'll suggest corrections for it.

    It should work the following way:
    1) you build your web application that knows about every user. the application is hosted on "webserver.host" and accepts requests on various "app.js" paths.
    2) Parallels HTML5 Client is hosted on "server-name": https://server-name/RASHTML5Gateway
    2) from your portal Parallels HTML5 Client is started in a new tab of user browser using a link "https://server-name/RASHTML5Gateway/?https://webserver.host/app.js#/launch"
    3) The link loads Parallels HTML5 Client and the Client before launching an application (actually before doing anything else at all) connects to "https://webserver.host/app.js" and expects a JSON reply containing user credentials and remote connection settings:
    RASHTML5LoadApp ({ u: 'username', q: 'password', a: '#3', p: 'c:\\temp\\another.txt', extra: { redirectPrinter: true, redirectLinks: true, redirectSound: true } });

    a: '#3' - is a publishing ID.
    p: - is a parameter to start the app with
    app.js - is a way to pass all necessary parameters to your web application. It should be dynamically generated for every user and every application he has access to through your portal. for example notepad_3_username-user123.js or whatever you are comfortable with.
     
    Last edited: Mar 14, 2019
    JoseS7 likes this.
  5. JoseS7

    JoseS7 Bit poster

    Messages:
    4
    Thank you very much for your quick and very enlightening response! :)
    This would greatly improve the section on the documentation.
    My best regards
     

Share This Page