Monthly Archives: September 2008

XPath in SimpleXML

SimpleXML as it name imply, is a very simple API to traverse XML implemented specially in PHP language. It is very similar to the XPath, but since it has more PHP friendly syntax PHP developers really like to use it. … Continue reading

Posted in php, xml, xpath | Tagged , , , | 20 Comments

The Design of the Twitter REST API

The REST API for Twitter is very simple to learn and implement. And it has a comprehensive documentation. Here is some selected operations to just to show its design. Note that here userid should be replaced with a valid twitter … Continue reading

Posted in REST, RESTful | Tagged , , , , | 4 Comments

Online Tools for PHP Web Services Developers

PHP Web Services Demo Site contains a set of nice tools that help development of web services in PHP. WSDL2PHP tool – This allow you to generate PHP code for your WSDL. Note that this need your wsdl to be … Continue reading

Posted in DataServices, web services, WSDL, wsf/php, wso2 | Tagged , , , , , , , , | Leave a comment

RESTful CRUD Data Services Demo

When you are developing Web Service for CRUD (Create, Read, Update, Delete) operations you may find it is easy to implement it as RESTful service. In this Demo on RESTful CRUD Service You can have an idea how you develop … Continue reading

Posted in DataServices, REST, RESTful, Tutorial/Guide, web services, wsf/php, wso2 | Tagged , , , , , , , , | 1 Comment

WSF/PHP Webinar

WSO2 WSF/PHP Webinar slides are now online. It basically contains an introduction to the WSF/PHP project, the features in its last week hot release and its enterprise applications. WSF PHP 2.0.0 Webinar Sep 2008 You can watch the video of … Continue reading

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

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