With WSO2 WSF/PHP 1.2.0 release, Now you are able to use pecl tool for installing WSF/PHP extension. We built this package for linux platform. I am sure that all those php developers on linux platfrom interested in using WSF/PHP will welcome this.
Following are the steps needed to install WSF/PHP on linux.
1. Download WSF/C Framework from here.
http://dist.wso2.org/products/wsf/c/wso2-wsf-c-src-1.2.0.tar.gz
2. Installing wso2-wsf-c is very simple.
tar xf wso2-wsf-c-src-1.2.0.tar.gz
cd wso2-wsf-c-src-1.2.0
./configure
./make
/make install
This will install WSO2 WSF/C Web Services Framework will be installed to /opt/wso2
directory. You will need super user previlages to install it to /opt directory.
3. Now use pecl tool to install the WSF/PHP.
pecl install http://dist.wso2.org/products/wsf/php/wso2_wsf_php-1.2.0.tgz
Now pecl tool will download and install WSF/PHP extension. It will copy the docs folder to /usr/local/lib/php/doc/wso2_wsf_php. samples and scripts folders will be installed to /usr/local/lib/php directory.
Copy the samples folder to your apache2 webserver's document root.
4. Add the following entries to php.ini file.
extension=wsf.so
wsf.home = /opt/wso2/wsf_c
log_level = 3
Uncomment the include_path entry and edit it to point to the location for scripts folder as include_path = ".:/usr/local/lib/php/wso2_wsf_php/scripts"
Please note that you need to have php_xsl extension installed on your system to run the wsdl mode samples.
Also you can check the the project home page.
Pretty cool, but just so you know, the installation tool is not named pecl tool, it's the pear installer which has the pecl command available for easier installation for php exts :-)
ReplyDeleteJust wanted to correct that.