Category Archives: xml

Coding Schema Inheritance in PHP

If you are thinking of writing a web service or a client based on a WSDL, you can easily generate the code for PHP or any other language using tools likes wsdl2php or other wsdl2xxx category tools. Then you don’t … Continue reading

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

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

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

Axis2/C ADB 2 Minutes Introduction

Building and Traversing XML are regular tasks for any Web Service developer. We may use DOM, AXIOM or even simple String manipulation functions to do that. Normally this takes a lot of time and effort. And if we are coding … Continue reading

Posted in 2 minutes guide, adb, axis2/c, codegen, tool, Tutorial/Guide, WSDL, wsdl2c, xml, xml schema | Tagged , , , , , | Leave a 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