Use the following procedure to configure Adaptive Server Enterprise Web Services.
Configuring Adaptive Server Enterprise Web Services
Provide values for the following properties in the ws.properties file in the props directory, or use the provided defaults:
com.sybase.ase.ws.interfaces
com.sybase.ase.ws.producer.httpport
com.sybase.ase.ws.producer.jettylogfile
com.sybase.ase.ws.producer.logfilename
com.sybase.ase.ws.producer.tuning.maxidletime
com.sybase.ase.ws.producer.tuning.maxthreads
com.sybase.ase.ws.producer.tuning.minthreads
com.sybase.ase.ws.producer.tuning.ssl.maxidletime
com.sybase.ase.ws.producer.tuning.ssl.maxthreads
com.sybase.ase.ws.producer.tuning.ssl.minthreads
Add your certificates for using SSL, or allow a non-trusted certificate to be automatically generated.
To add an SSL certificate, run the configssl script, which can be found in the bin directory:
configssl -h <httpsPort> -c <certificate_password> -s <keystore_password>
The configssl script sets the following entries in the ws.properties file:
com.sybase.ase.ws.producer.ssl.httsport
com.sybase.ase.ws.producer.ssl.keypassword
com.sybase.ase.ws.producer.ssl.keystore
com.sybase.ase.ws.producer.ssl.password
For details on the parameter values for the configssl script, see “Configuring SSL”.
To replace a certificate that was auto-generated in the keystore with your own certificate, use the java keytool utility. This utility is in the bin directory for your JRE. For more information on the keytool utility, see the documentation at the following URL:
http://java.sun.com/j2se/1.3/docs
If you are using Microsoft .NET, you must install a certificate. For details on installing a certificate for Microsoft .NET, see “Installing a certificate for Microsoft .NET”.
Verify that the installjconnect script has been run. This script installs jConnect and can be found in the scripts directory for your Adaptive Server Enterprise installation.
Verify that the necessary sp_configure options are set on your Adaptive Server Enterprise by executing the following stored procedure command in isql:
sp_configure ‘enable
webservices’, 1
Provide configuration parameter values for remaining entries in the ws.properties and logging.properties files in the props directory.
Verify that you have JRE version 1.3 or later installed. This version should be installed with the latest version of Adaptive Server Enterprise.