Archive 1.x:StructWSF PHP API

The structWSF PHP API is a framework available to PHP developers to help them generate queries to any structWSF Web service endpoint. Each structWSF web service endpoint has its own WebServiceQuery class in the structWSF PHP API. This class is used to generate any query, to send it to be endpoint of a structWSF instance and to get back a resultset. The resultset can then be manipulated by using the Resultset API. This same API can be used to transform the resultset into different formats.

How to use the API
This API is used to generate structWSF queries to different web service endpoints. This API framework is composed of a series of classes that are used to help PHP developers create structWSF queries in their respective PHP applications.

The use of this API is simple. Developers normally have three easy steps to do:


 * 1) Instantiate the class of the web service they want to query
 * 2) Define all the parameters/features/behaviors of the web service by invoking different methods of the class
 * 3) Send the resulting query using the send method

Here is an example of a query that is generated using the structWSF PHP API and sent to specific structWSF network instance:

Auto-loading of Classes
The structWSF PHP API does comply with the PSR-0 Standard Document for auto-loading the classes of the framework. The SplClassLoader class that has been developed by the same group can be used as the classes auto-loader.

Here is an example of how you can auto-load the classes of the structWSF PHP API framework:

Web Services Usage
Here are some examples of how each of the web services can be used.