Category Archives: wsf/php

Http Authentication for SOAP Messages in PHP – 2 Minutes Introduction

Yesterday’s blog on “Using Username token in Authentication” I explained a standard way of authenting SOAP messages in Application layer (Message level Authentication). Anyway you can authenticate SOAP messages in transport level itself. For an example with HTTP Transport we … Continue reading

Posted in 2 minutes guide, security, Tutorial/Guide, web services, wsf/php, wso2 | Tagged , , , , , , | 1 Comment

Authenticate using Username Token from PHP – 2 Minutes Introduction

Username token is a simple token sent inside SOAP message header element with username and password information.  It is used to authenticate SOAP messages in a standardized way. Sending Username Token To send username token with WSF/PHP you can use … Continue reading

Posted in 2 minutes guide, security, Tutorial/Guide, web services, wsf/php, wso2 | Tagged , , , , | 3 Comments

Send Binary With Web Services in PHP – 2 Minutes Introduction

In PHP you have several ways of sending binary data. It can be primarily categorized in to non-optimized method (send as base64 binary) and optimized method (send as MTOM or SWA). Here I m talking about how to send binaries … Continue reading

Posted in 2 minutes guide, Tutorial/Guide, web services, WSDL, wsf/php, wso2, xml schema | Tagged , , , , , , , | 3 Comments

WSDL2PHP 2 Minutes Introduction

WSDL2PHP makes the development of web service providers and consumers quick and easy. I wrote a 2 minutes guide on developing web services providers sometimes ago. So lets concentrate on developing web service consumers here. Where is WSDL2PHP? WSDL2PHP script … Continue reading

Posted in 2 minutes guide, Tutorial/Guide, web services, WSDL, wsf/php, wso2, xml schema | Tagged , , , , , , , | 19 Comments

SOA Way of Writing PHP

Traditional way of Writing PHP Let me draw a component diagram of a typical traditional(conventional) PHP web application. With this design you get the advantages of the client-server architecture and the MVC design pattern. Advantages of the Traditional Approach You … Continue reading

Posted in DataServices, security, Tutorial/Guide, web services, wsf/php, wso2 | Tagged , , , , , , , | 7 Comments

Do REST in PHP – PHP RESTful Data Services

In RESTful paradigm we give a piece of data ( or in other word ‘Resource’) a unique URL. And in order to manipulate data we use HTTP verbs POST/PUT (create, update), GET (read), DELETE (delete). For an example take the … Continue reading

Posted in DataServices, Tutorial/Guide, web services, wsf/php, wso2 | Tagged , , , , , , , , , , , , | 6 Comments

PHP Data Services With WS-Security

Earlier I wrote a blog about how to make your wordpress blog a web service using the WSF/PHP Data Services library. I will expand that post to demonstrate the use of WS-Security features with WSF/PHP. This time it is a … Continue reading

Posted in DataServices, security, Tutorial/Guide, web services, WSDL, wsf/php, wso2 | Tagged , , , , , , | 5 Comments

Code First Approach of Developing Services with WSF/PHP 2.0

In the code first approach, WSF/PHP will generate you the WSDL from your annotated PHP code. If you are familiar with older versions of WSF/PHP you should be already familiar with the syntax used in the annotations which are more … Continue reading

Posted in Tutorial/Guide, web services, WSDL, wsf/php, wso2, xml, xml schema | Tagged , , , | Leave a comment

WSO2 WSF/PHP 2.0.0 Just Released!

We have been waiting for a while to do the WSF/PHP 2.0.0 release with a bundle of new features. We took time to test all the features and to make sure they are working smoothly. And it is heavily tested … Continue reading

Posted in wsf/php, wso2 | Tagged , , , , , , , | Leave a comment

Developing WSF/PHP Webservices With Contract First Approach – 2 Minutes Introduction

WSF/PHP allows you to develop web services with both Contract First (Starting from WSDL) and Code First Approaches. From these two, Contract First approach is the most famous and most recomended way of developing a Webservice. There you need to … Continue reading

Posted in 2 minutes guide, Tutorial/Guide, web services, WSDL, wsf/php, wso2, xml schema | Tagged , , , , , | 1 Comment