Install WSO2 WSF/PHP in Windows (WAMP)
I’ve been using WSF/PHP on Linux Platform for a while now. Today, I wanted to try it out on Windows platform. Though there is a comprehensive installation guide out there, I thought it would be nice to have a summarized version for windows.
What is WSF/PHP ?
Extracted from the product page at WSO2.org
“Web Services Framework for PHP (a.k.a WSF/PHP) , is an open source, enterprise grade, PHP extension for providing and consuming Web Services in PHP.
WSO2 WSF/PHP is a complete solution for building and deploying Web services, and is the only PHP extension with the widest range of WS-* specification implementations. Key features include, secure services and clients with WS-Security support, binary attachments with MTOM, automatic WSDL generation (code first model) , WSDL mode for both services and clients (contract first model) and interoperability with .NET and J2EE. “
WSF/PHP is based on WSO2 WSF/C
WSF/PHP installation procedure (on Windows)
It is assumed that you have installed, Apache, PHP and MySQL(optional) and they are working properly. If not you might find this tutorial useful.
1. WSF/PHP depends on following libraries. Download and install them to known locations.
Libxml2, iconv, OpenSSL msi version
I have installed them under C:wsfdepends directory as follows.
2. The current WSF/PHP version (v1.2.0) can be downloaded from project download page. Select the release zip version and download. Next, extract the zip file to a known location.
Again I have extracted the files under C:wsf directory. So the directory structure as follows.
3. Now copy the wsf.dll from the extracted directory to PHP
xt directory. As per my machine it is,
7. Copy the samples folder to your Apache Web server’s document root, If you want to run samples.
8. That is it! Now you can run samples in samples directory.




