Web Services: XML-RPC, SOAP, sobre PHP, Perl, y otros conceptos

Es imprescindible instalar expat, antes de instalar el soporte XML-RPC de PHP. El proyecto expat es una librer�a programada en C cuyo objetivo es hacer de "parser" (int�rprete) de XML. La instalaci�n es sencilla:

mkdir/home/install/programacion/php/ 
cd /home/install/programacion/php/ 
wget "http://unc.dl.sourceforge.net/sourceforge/expat/expat-1.95.4.tar.gz" 
cd /usr/src/ 
tar -zxvf /home/install/programacion/php/expat-1.95.4.tar.gz 
rm -Rf expat 
ln -s expat-1.95.4 expat 
cd /usr/src/expat/ 
make clean 
rm -f config.status config.cache 
./configure 
make 
make install 
echo "/usr/local/lib" >> /etc/ld.so.conf 
ldconfig 

Una vez que disponemos de expat en nuestro Linux, compilamos PHP nuevamente:

### Compilo PHP4 como modulo de Apache 
cd /usr/src/php/ 
make clean 
rm -f config.status config.cache 
./configure \ 
--with-apache=/usr/src/apache \ 
--with-zlib \ 
--enable-sockets \ 
--with-kerberos=/usr/kerberos \ 
--enable-inline-optimization \ 
--with-expat-dir=/usr/local \ 
--with-xmlrpc \ 
--enable-overload \ 
--with-imap 
make 
make install 

Hay algunas opciones imprescindibles (with-expat-dir, --with-xmlrpc, ...) para disponer de soporte XML-RPC en PHP. Otras van en funci�n de nuestros proyectos y sus requisitos.

En Perl es muy sencillo invocar un servicio XML-RPC

COMPARTE ESTE ARTÍCULO

COMPARTIR EN FACEBOOK
COMPARTIR EN TWITTER
COMPARTIR EN LINKEDIN
COMPARTIR EN WHATSAPP
ARTÍCULO ANTERIOR

SIGUIENTE ARTÍCULO