How to resolve common issues setting up PHP sample pages

Document type: Tech doc  
Associated product(s): Product name: Pro Web Version: 4.0 + Implementation: Web API
Views: 487  |  Created: Last yearLast updated: Last year

Summary

This document highlights the configuration steps required in order to resolve common issues running QAS Pro Web 4.5’s PHP sample pages in a Windows environment.

It assumes that Pro Web and the associated country data has been installed correctly. Where possible, this should be tested by running the test harness, WebConsole.exe; ensuring that it returns addresses.

Symptoms

The QAS Pro Web PHP pages require the PHP soap extension to be installed (this is available from PHP 5 onwards). Failure to have the extension installed will cause the sample pages to report errors shown in figure 1:

Figure 1

Solution

To install the extension, add/ uncomment the following line within php.ini:

extension=php_soap.dll

Further Configuration

In additional to the steps above, it may be necessary to configure the pages to connect to the QAS Server.

A standard installation configures the QAS server to listen on port 2021. However, if the QAS Server is configured to listen on another port then the pages will need to direct requests to the new port. This is covered extensively in the QAS Pro Web Integration guide, however the table below highlights where these changes are required:

 

Environment

File

Constant

Updated during installation?

C#.NET

web.config

com.qas.proweb.ServerURL

Yes

VB.NET

web.config

com.qas.proweb.ServerURL

Yes

PHP

constants.inc

CONTROL_WSDL_URN

No

ASP

constants.asp

CONTROL_WSDL_URN

Yes

JAVA/JSP

web.xml

(in \WEB-INF\web.xml)

QasEndpoint

No

Was this document helpful?

What can we do to improve this information?