Nusoap In Php

Allandin

New Member
Messages
13
Reaction score
0
Points
0
hi, how are you i need your help ASAP tomorrow is my graduation job and im trying to run this http://tesisujmd.elementfx.com that uses nusoap in some part, i already added the libraries and all that but im not able to run it, you can see http://tesisujmd.elementfx.com/cliente.php thats the one that call nusoap and we also have http://tesisujmd.elementfx.com/server.php which works fine, then when i try to generate the XML clickin http://tesisujmd.elementfx.com generate RSS it gave me error, i read that you support SOAP but im not sure about NUSOAP, please help!!!
 

bonzo meier

Member
Messages
47
Reaction score
0
Points
6
hi,

can you please post the code of your 'cliente.php', especially lines 1-5?

thanx, bonzo
 

Allandin

New Member
Messages
13
Reaction score
0
Points
0
<?php
// utilizando toolKit NuSOAP
require_once('lib/nusoap.php');
// creando cliente para servicio
$client = new soapclient('http://tesisujmd.elementfx.com/server.php');
// llamando funcion rss en server
$return = $client->call('rss_func');
// validando valor devuelto
//var_dump($return);
if ( is_array($return)) {
// armando XML para presentar los datos
echo '&lt;?xml version="1.0" encoding="ISO-8859-1" ?>';
echo '<br>';
echo '&lt;rss version="2.0">' ;
echo '<br>';
echo '&lt;channel>';
echo '<br>';
echo '&lt;title>Noticias RSS&lt;/title>';
echo '<br>';
// asignando posicion inicial
$posicion=0;
// recorriendo arreglo
foreach ($return as $valor1) {
echo '&lt;item>' ;
echo '<br>';
foreach ($valor1 as $valor2) {
switch ($posicion) {
case 0:
echo '&lt;title>'. $valor2 . '&lt/title>' .'<br>' ;
break;
case 1:
echo '&lt;link>'. $valor2 . '&lt/link>'.'<br>' ;
break;
case 2 :
echo '&lt;description>'. $valor2 . '&lt/description>'.'<br>' ;
break;

}
$posicion++;
}
// echo '&lt;description>-&lt/description>'.'<br>' ;
$posicion=0;
echo '&lt;/item>' ;
echo '<br>';
}
echo '&lt;/channel>';
echo '<br>';
echo '&lt;/rss>';
} else echo "No se Encontraron Datos u Ocurrio un Error de Transaccion";
?>
****** nusoap.php are like 7000 lines... is a default library****
 

Jarryd

Community Advocate
Community Support
Messages
5,534
Reaction score
43
Points
48
Please try upgrading your php version to intermediate, login here: http://x10hosting.com/login

Use your forum username and password then scroll all the way down the page and on the bottom left side you will see a upgrade area, please click the intermediate version and request it, The upgrade process may take up to 24 hours, but i believe this will solve your problem.
 
Top