How to test your Web Configuration is running
Date: | 13 May 2016 |
---|---|
Product/Release: | Visual LANSA V14 |
Abstract: | How to test your Web Configuration is running |
Submitted By: | LANSA Technical Support |
There are two easy ways to test your web site is correctly configured and
currently running. You can select to test the appropriate web technology you are
using, Web Pages and Web Webroutines.
If these test fail, refer back
to the Install and
Administer LANSA Guide or contact your local LANSA support group.
A Simple Web Page to test web Configuration
After you have installed and configured web for an RDMLX partition, if
you are intending to use web pages, you can execute a test Web Page to test your
configuration.
In the IDE go to File > Options > Web
For Windows IIS Configurations your Web page Base URL
should look like the following:
http://localhost:<port>/<configuration name>/
For IBM i
Apache Configurations your Web page Base URL should look like the
following:
http://<IBM i>:<port>/<LANSA system name>/
Note:
- Using the 3 URLs available, you can set up several Web Page Base URLs, for example, your local one and your development IBM i and your test IBM i. It becomes an easy way to test if a particualr web site setup OK and ready to go.
- If you are running the test on IBM i Apache system the AVLWEB import must be performed via the partition initialization in the Administration Menu first.
- Note: From Service Pack 1 for V14, the web import is called WEBINIT. This import is mandatory for web development.
- If there are special characters(like '@' '_' ) or spaces
in your Visual LANSA configuration name or your LANSA for i system name, these will be substituted with '-'.
For example: a LANSA for i system called '[email protected]' would become 'DC-PGMLIB' and a Visual LANSA configuration name of 'My LANSA V14' would become 'My-LANSA-V14'
Use the test button to launch something like the following URL.
When the
web page is launched in the browser the following will be appended to the end of
your URL: <partition>/xvlwebtst.html?lang=eng
The following page should be displayed:
Press the 'Send Rquest to Application Server' button to verify that the
application server is set up and working.
It should look like the following:
A Simple WAM to Test WAM Configuration
Note: If you install a new V14 Visual LANSA system, you will only have the Web Page URL test option, you won't see the Webroutine URL test option.
After you have completed a partition initialization for WAM development, use the Webroutine Base URL test to check if WAM's are set up and working correctly.
For Windows IIS Configurations your
Webroutine Base URL should look like the following:
http://localhost:<port>/<configuration name>/lansaweb
For
IBM i Apache Configurations your Webroutine Base URL should look
like the following:
http://<IBM i>:<port>/<LANSA system
name>/lansaweb
When the page is launched in the browser the following will be appended to the end of your URL: ?wam=xabout&webrtn=show&ml=LANSA:XHTML&part=<your RDMLX partition>&lang=ENG
The following page should be displayed: