When you have started your server, and you have installed and activated data, your server is ready to receive client requests. This section describes how to configure and use the sample pages with your server and address layouts.
Under Windows, the sample integration pages are automatically configured with the correct server path by the installer (except for the JSP sample which must be configured manually). Under UNIX, or if you change the server address or port you must reconfigure the sample integration pages as follows:
Integration Code | File | Form |
---|---|---|
JSP | web.xml. Uncompress the war file and extract the web.xml file from the WEB-INF subdirectory. |
<param-value>http://localhost:2021</param-value> |
C#.NET | web.config in the root directory | <add key="com.qas.proweb.serverURL" value="http://localhost:2021/" /> |
PHP | constants.inc in the root directory | define( CONTROL_WSDL_URN, "http://localhost:2021/proweb.wsdl"); |
JSP and C#
To configure the PHP sample pages to use SSL, you will need to:
The sample pages are configured to use each data mapping's standard address layout by default. You can use different layouts with your sample pages, provided they have already been configured with the Configuration Editor or in the configuration files. To specify the address layout that a specific data mapping should use you must add lines to the sample page configuration files as follows.
In the WEB-INF\web.xml file, find the section:
<context-param>
<param-name>QasLayout</param-name>
<param-value>( QAS Standard Layout )</param-value>
</context-param>
Add sections beneath it in the form:
<context-param>
<param-name>XYZ</param-name>
<param-value>(Layout Name)</param-value>
</context-param>
Where "XYZ" is the data mapping identifier and "Layout Name" is the name of the layout you want to use with it.
In the web.config file, find the line:
<add key="com.qas.proweb.layout" value=" ( QAS Standard Layout )"/>
Add lines beneath it in the form:
<add key="com.qas.proweb.layout.XYZ" value="Layout Name"/>
Where "XYZ" is the data mapping identifier and "Layout Name" is the name of the layout you want to use with it.
In the constants.inc file, find the line:
default: define( "CONTROL_LAYOUT", "( QAS Standard Layout )"); break;
Add line above it in the form:
case "XYZ" : define( "CONTROL_LAYOUT", "Layout Name"); break;
Where "XYZ" is the data mapping identifier and "Layout Name" is the name of the layout you want to use with it.
Once the sample integration pages have been correctly configured, you can view and use them with the following steps: