First download and install apache2 server. Please follow the instructions in INSTALL file.
Then download WSF/C and configure with the following option
%./configure --with-apache2=/path/to/apache2 --prefix=/your/wsfc_home/directory
%make
%make install
Once you do make install, this will create a libmod_axis2.so inside WSFC_HOME/lib. Copy this file to apache2/modules directory. Now please open the httpd.conf file inside conf directory. Add following entries to the file. These will be your configurations to the axis2/c web services engine.
LoadModule axis2_module modules/libmod_axis2.so
Axis2RepoPath /your/path/to/wsf/c/home
Axis2LogFile /tmp/apache_axis2.log
Axis2LogLevel debug
Axis2MaxLogFileSize 32
<Location /axis2>
SetHandler axis2_module
</Location>
Done? Perfect. Let's start the server
%./httpd -k start
If the default port (i.e. 80) is in use try another port such as 8080. You can change the port in the conf/httpd.conf file
Listen 8080
Open s browser and enter the following address as the url
http://localhost:8080/axis2/services
If all goes well, this should show the deployed services. Usually these are samples comes with WSF/C.
No comments:
Post a Comment