WSO2 Web Services Framework/PHP

WSO2 Web Services Framework/PHP (WSO2 WSF/PHP) is a next generation SOAP stack, based on WSO2 WSF/C, for providing and consuming Web Services in PHP.

WSO2 WSF/PHP supports both SOAP 1.2, SOAP 1.1,WSDL 1.1 , WSDL 2.0 as well as some of the key WS-* stack specifications such as: SOAP MTOM, WS-Addressing (version 1.0 and submission), WS-Security, WS-SecurityPolicy.

Mailing Lists

You can get involved by sending your feedback, questions and suggestions to the following mailing list.

User Mailing List : | Subscribe | Unsubscribe

WSO2 WSF/PHP Features



Comprehensive Support for Web Services Standards

WSO2 WSF/PHP supports the basic Web services standards including SOAP 1.1, SOAP 1.2 ,WSDL 1.1 and WSDL 2.0.

WSF/PHP also supports the following WS-* specifications:


  • WS-Addressing

  • WS-Security

  • WS-SecurityPolicy

Proven Interoperability

WSO2 WSF/PHP features proven interoperability with Microsoft .NET, WSO2 WSAS (Apache Axis2/Java based Web services application server) and other J2EE implementations. The basic SOAP level interoperability as well as WS-* specification implementations have been tested and proven to interoperate.

Portability and Platform Support

WSO2 WSF/PHP has been tested on:

  • Windows 7 - Microsoft Visual C++ 9.0

  • Windows Vista - Microsoft Visual C++ 9.0

  • Linux - gcc 4.1.1

Attachments with Web Services and Clients You can send and receive attachments with SOAP messages both in optimized as well as non optimized formats with MTOM support.
Secure Web Services and Clients You can send messages with UsernameToken, and with TimeStamp support.
WSO2 WSF/PHP extension also supports advanced WS-Security features including encryption and signing of SOAP messages.
REST Support A single service can be exposed both as a SOAP style as well as a REST style service. The client API also supports invoking REST services using HTTP GET and POST methods.

WSDL Generation

WSO2 WSF/PHP can generate WSDL for PHP service scripts. The well known
"?wsdl" (for serving WSDL 1.1) as well as "?wsdl2" (for serving WSDL 2.0) work for PHP Web services scripts.


WSO2 WSF/PHP extension also supports contract first style of implementing Web services and clients. A user can simply provide a WSDL and implement Web services and clients based on the interface given in the WSDL.
wsdl2php script This script can generate PHP classes for services and clients for a given WSDL to be used with WSDL Mode.