WSO2 Web Services Framework/PHP (WSO2 WSF/PHP) is the next generation SOAP stack, based on WSO2 WSF/C, for providing and consuming Web Services in PHP. It provides secure and reliable Web Services and clients, support for Web Service standards, support for REST services and more.

Get Involved Today!

This page is the home for the development and user community of WSO2 Web Services Framework/PHP. From here, you can contribute to the source code, report issues, participate in discussions in the community forums or access downloads, documentation and tutorials.

For more information on the capabilities, features, usage scenarios, case studies and white papers, cloud hosted versions, and commercial support offerings, please visit WSO2 WSF/PHP Product Page.

Articles

Introduction to PHP Data Services

In this introductory tutorial, Dimuthu Gamage explains the basics of Data Services and how to use the WSF/PHP data services library to develop data services as REST and SOAP with WS-* support.

WSF/PHP: Creating Business-Conscious IT Solutions

In this article by Malinda Kaushalye Kapuruge, he demonstrates how WSO2 WSF/PHP can be used to implement a typical business solution.

Install WSF/PHP 1.2.1 With Zend Core in Ubuntu 7.10

This tutorial by Dimuthu Gamage he explains installing WSF/PHP 1.2.1 on Ubuntu 7.10.

PHP Web Services with WSDL

In this introductory tutorial, Dimuthu Gamage explains how you can use the contract first model, which is also called WSDL mode, to write your Web services and clients using WSO2 WSF/PHP.

PHP Web Services: Messaging – SOAP and REST

In this article by Samisa Abeysinghe, he discusses various features available in the WSO2 Web Services Framework for PHP that can be used to send and receive messages to and from services and clients. He discusses how to deal with SOAP messages as well as REST style invocations.
Tutorials

Build a RPM Package of the WSO2 WSF/PHP 2.1 for Zend Server 5

I've being using WSO2 WSF/PHP as the framework for developing web services in enterprise environments. WSF/PHP is a complete SOA stack for develop, test and deploy web services in PHP. It supports SOAP 1.2, SOAP 1.1, WSDL 1.1 , WSDL 2.0 and some of the main WS-* specifications such as, SOAP MTOM, WS-Addressing , WS-Security and WS-SecurityPolicy. The applications we create can be run on many platforms but the focus of this tutorial is on building the RPM package to be installed in Zend application Server.

How to Setup WSO2 WSF/PHP Build Environment on Windows XP

This tutorial from Dushshantha Chandradasa guides you through the steps you need to follow, to setup a build environment for WSO2 WSF/PHP on Windows XP.

Writing Simple phpt Test Scripts For PHP Web Services

In this article, Dushshantha Chandradasa explains automated testing of a WSO2 WSF/PHP Web service using phpt.

WS-*/ REST Web Services with WSO2 WSF/PHP

This tutorial by Samisa Abeysinghe and Nandika Jayawardana introduces the WSO2 WSF/PHP API for consuming and providing Web services. Topics covered include quick start guide, using different SOAP versions, REST, XOP/MTOM, WS-Addressing and WS-Security UsernameToken.
Webinars

Past

Introducing Enterprise Web Services with WSO2 WSF/PHP 2.0.0

Tuesday, 23rd September 2008 10:00 AM (PDT)
Most PHP systems deployed work in silos. They provide lots of useful functionality and contain lots of useful data. But it has always been a nightmare to integrate such systems with other enterprise applications. The WSO2 Web Services Framework for PHP (WSO2 WSF/PHP) allows those systems to be integrated, seamlessly, with other applications.
Knowledge Base Items

Running WSF/PHP on The Uniform Server

This document by Chintana Wilamuna provides, a detailed and visual guide to installing WSO2 WSF/PHP on the Uniform Server. The Uniform Server is a WAMP, that runs on MS Windows without having to install any additional software on your computer.
Forums

Problem consuming a Java WS over https

Hello, i'm trying to consume a WS over https on a port different from 80 and 443; here is the code: $client = new WSClient(array("wsdl"=>"https://host:5678/...service?WSDL")); $proxy = $client->getProxy(); $arr_param=array(....); $return_val = $proxy->method_name($arr_param); var_dump($return_val); $return_val is always null. What am i doing wrong? Thanks in advance and greetings !
Wed, 22nd Feb, 2012 - 15.05 PST

Soap With Attachment using Proxy?

Dear WSO2 team, i'm an Italian student and I'm trying to use your framework. I have to use a WSDL file for my SOAP Client so I used your wsdl2php script.
Wed, 22nd Feb, 2012 - 11.12 PST

Problem with Rampart Module: missing Pub Cert/Priv Key ?

Hi devs, I'm fighting since three weeks with Rampart and WS Security (latest WSO 2.10). Our devs just need to use WS Security for a Client Call to an Oracle Webservice. For that just Username / PW Protection is needed. Any Token / SAML Stuff or encryption / signing is NOT needed. Nonetheless, Rampart always complains about missing certificates. I've read somewhere that those certificates are always needed, but I don't know if this is correct, and if they're needed I've no idea how to add them to a certificate store or something.
Wed, 22nd Feb, 2012 - 02.24 PST

Problem with policy included in WSDL

Hello, I'm trying to implement a client to consume a .NET Webservice in WSDL mode. The WSDL can be found here : https://as37.airwatchportals.com/AirWatchServices/UserServiceEndpoint.svc?wsdl.
Mon, 20th Feb, 2012 - 02.14 PST

Problem with wsdl2php.php: XSLTProcessor::transformToDoc(): xsl:attribute: Cannot add attributes to an element if children ...

Hello, I'm using wsf-php 2.1.0 on Debian 6.0 (PHP 5.3.3). I get errors when trying to convert specific wsdl to php classes. It has worked without problems before with other wsdl's. I get following output from the wsdl2php.php script: PHP Warning: XSLTProcessor::transformToDoc(): runtime error: file /usr/lib/php5/20090626/wsf_c/scripts/ line 657 element attribute in /usr/lib/php5/20090626/wsf_c/scripts/dynamic_invocation/wsf_wsdl_util.php on line 222 PHP Stack trace: PHP 1. {main}() /usr/lib/php5/20090626/wsf_c/scripts/wsdl2php.php:0 PHP 2.
Thu, 16th Feb, 2012 - 04.23 PST
library project main code