Skip to main content Help Control Panel

Aubagne HipHop

Tout le Hip Hop d'Aubagne et des alentours

Home «   Server software «  

Documentation: services/codec.php

Class Codec - Web service encoder and decoder

To implement a client of some web service, you will have:

This script is a reference file of this system.

Voir aussi:

Licence: GNU Lesser General Public License

Auteurs:

export_request() - Build a XML request on client side

function export_request($service, $parameters = NULL)

$result $codec->export_request($service$parameters);
if(!
$result[0])
    echo 
$result[1]; // print error code
else
    ... 
// send xml data from $result[1] to the remote web server


export_response() - Build a XML response on server side

function export_response($values=NULL, $service=NULL)

$result $codec->export_response($values$service);
if(!
$result[0])
    echo 
$result[1]; // print error code
else
    ... 
// send xml data from $result[1] to the remote web server


import_request() - Parse a XML request on server side

function import_request($data)

import_response() - Parse a XML response on client side

function import_response($data, $headers=NULL, $parameters=NULL)

initialize() - Load one XML codec handler

function initialize($variant)

Tools
Browse the source of this script
Server software