Monthly Archives: August 2008

How to Build Custom SOAP Headers in WSDL Using Axis2/C and WSF/PHP

SOAP Headers are used in many WS-* standards (for an example WS-Security) to transmit information related to the QOS aspects of the service. So only the SOAP engines which process these QOS parameters are supposed to see these headers. Web … Continue reading

Posted in adb, axis2/c, codegen, tool, Tutorial/Guide, web services, WSDL, wsdl2c, wsf/php, wso2 | Tagged , , , , , | 1 Comment

Send Binary in SOAP with WSF/PHP 1.3.2

In a valid XML you can only have text and you can not have binary characters. SOAP which in fact an XML is also having this issue. So it is not staright forward to send binary data in SOAP. But … Continue reading

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

XML Schema nillable=”true” vs minOccurs=”0″

In a WSDL, XML Schema is the section where it define the message format for each operations, which eventually become the real API that users are interested. And it is the most tricky part of the WSDL. Nowadays there are … Continue reading

Posted in web services, WSDL, xml, xml schema | Tagged , , , , | 21 Comments

Web Services Security in WSF/PHP 1.3.2

With WSF/PHP 1.3.2 you can use following basic features in WS-Security. Feature Purpose Array based Security Policy Options ($sec_policies) Security Token Options ($sec_token_options) UsernameToken Authentication array(“useUsernameToken” => TRUE) array(“user” => “your_username”, “password” => “your_password”, “passwordType” => “Digest”); //Digest/Plain Timestamp Avoid … Continue reading

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

Install PHP, WSF/PHP and DataServices in a Shared Hosting Environment

If you have a shared hosting environment you will find it is not straight forward to install WSO2 WSF/PHP + PHP DataServices Library since you have very limited authority on your environment. Here in this post, I’m explaining the steps … Continue reading

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

Encrypt and Sign your SOAP messages in PHP

When you are developing a Web Service, you have to think about the security aspects of your service seriously. When it comes to security in web services you have two basic choices. Transport level security – Just SOAP over HTTPS … Continue reading

Posted in security, web services | Tagged , , , , , , , , , , | 3 Comments

Transport Level Security vs Message Level Security

Transport Level Security Message Level Security Secures point to point communication. E.g: Your browser to Apache server Secures end to end to end communication. E.g. Sales Order Request application to Database updating application Not transparent thorough multiple transport protocols, Transparent … Continue reading

Posted in security, web services | Tagged , | 1 Comment

Make your WordPress Blog a Web Service in Few Steps

With PHP DataServices it is just a matter of putting a little configuration php file to make your database available as a web service. I only needed few minutes to make a simple web service from my blog after figuring … Continue reading

Posted in DataServices, web services, wsf/php | Tagged , , , , , , , , | 4 Comments

Nested Queries with PHP Data Services

We use the term ‘DataService’ when we expose a database as a web service. WSO2 has a separate product for the DataService space which was earlier shipped bundled with WSAS. There you write a configuration xml explaining what data to … Continue reading

Posted in DataServices, web services, wsf/php, wso2 | Tagged , , , , , , | 2 Comments