PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Implementation and use conditions
  • Install the Webservice supplied by PC SOFT on a server
  • Install the files required to access the databases
  • Use SQLConnectWS to connect to the database
  • Use the SQL functions to handle the database
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview
The access to a database can be performed via a Webservice.
This operating mode can be used in several cases:
  • Access to the databases limited to the HTTP functions.
  • Access to an external database (Oracle, SQL Server, ...) from an iOS or Android mobile device.
  • ...
Implementation and use conditions

Install the Webservice supplied by PC SOFT on a server

The setup program of the Webservice for accessing the databases is supplied with WINDEV, WEBDEV and WINDEV Mobile. This program is available in the "INSTALL" sub-directory of the setup directory of the product.
To install the Webservice:
  1. On the server, start WX230PACKRSRV.EXE found in the "Install\WDServerR" sub-directory of the requested product.
  2. In the wizard:
    • Accept the license agreement.
    • In the "Choice of modules" screen, select "Install the Webservice for accessing the external databases".
    • Specify the setup directory of the elements of the reserved server.
    • Specify the URL for accessing the server where the Webservice will be installed. You have the ability to use a secure address. This address will be used during the connection via the Webservice via SQLConnectWS.
  3. Validate the setup.
Notes:
  • This Webservice must be installed on the server to which the applications that use the external databases will connect.
  • The server must be able to access the external databases.
  • The setup of the Webservice installs a specific version of the WEBDEV application server. This version is required for the Webservice to operate.

Install the files required to access the databases

The database accessed via the Webservice can be found on any computer. Only condition: this computer must be accessible from the server where the Webservice was installed.
Different elements must also be installed according to the type of database.
Accessing the database via a Native Access
If the access to the external database must be performed via a Native Access, the following elements must be installed on the same computer as the Webservice:
  • the corresponding client layer if necessary.
  • the libraries of the Native WINDEV or WEBDEV Access used to access the database.
Accessing the database via an OLE DB driver
If the access to the external database must be performed via a OLE DB, the following elements must be installed on the same computer as the Webservice:
  • MDAC version 2.6 or later.
  • the OLE DB provider corresponding to the database used.
Accessing the database via ODBC
If the access to the external database must be performed via ODBC, the ODBC data source must be configured in ODBC Administrator on the setup computer of the Webservice. This data source must be a "system data source".

Use SQLConnectWS to connect to the database

To connect to the database via the Webservice, all you have to do is use SQLConnectWS. This function corresponds to SQLConnect. An additional parameter appears: the URL for accessing the server where the Webservice was installed. This URL corresponds to the URL specified in the wizard for installing the Webservice.
Tip: How to find out whether the connection parameters are correct:
You have the ability to create a simple test program by using SQLConnect in order to connect to the database. All you have to do is run this program on the server where the Webservice is installed. If the access to the database is correct, the parameters specified in SQLConnect can be re-used in SQLConnectWS, by adding the server address.

Use the SQL functions to handle the database

Once connected to the database, the application can handle the data via the SQL functions of WLanguage.
Notes:
Minimum required version
  • Version 19
This page is also available for…
Comments
Another way to access it is with SQLConnectWS

http://help.windev.com/en-US/?1000021031&name=SQLConnectWS

http://windevdesenvolvimento.blogspot.com.br/2015/02/windevmobile-sqlconnectws-wm19-e-apache.html

http://windevdesenvolvimento.blogspot.com.br/2015/01/windevmobile-postgres-webservice.html

https://drive.google.com/open?id=0B4m-6Y4mJcdvR1poWmhHSXc2OW8&authuser=0

adrianoboller
Feb. 16 2015