Ver Mensaje Individual
  #7 (permalink)  
Antiguo 07/07/2011, 15:15
Avatar de PICOROFG
PICOROFG
 
Fecha de Ingreso: febrero-2008
Ubicación: Quito, Ecuador, Ecuador
Mensajes: 120
Antigüedad: 16 años, 2 meses
Puntos: 0
Respuesta: PHP NuSoap WebService con Oracle Error al desplegar dato

Ahora he probado con el básico ejemplo hola mundo y me sale el mismo error

array(4) { ["faultcode"]=> string(15) "SOAP-ENV:Client" ["faultactor"]=> string(0) "" ["faultstring"]=> string(95) "error in msg parsing: XML error parsing SOAP payload on line 1: Not well-formed (invalid token)" ["detail"]=> string(0) "" }


server.php

Código PHP:

//incluimos la clase nusoap.php
require_once('nusoap/lib/nusoap.php');
$namespace 'http://localhost/usfq_ws';

//creamos el objeto de tipo soap_server
$server = new soap_server;
$server->configureWSDL("UnWebServiceSimple"$namespace);
//registramos la función que vamos a implementar
$server->register('hello');

//implementamos la función
function hello ($name){
return 
"Hola $name.";
}

//llamamos al método service de la clase nusoap
$server->service($_SERVER['HTTP_USER_AGENT']); 
cliente.php

Código PHP:

//incluimos la clase nusoap.php
require_once('nusoap/lib/nusoap.php');

//creamos el objeto de tipo soapclient.
//http://www.mydomain.com/server.php se refiere a la url
//donde se encuentra el servicio SOAP que vamos a utilizar.
$soapclient = new soapclient'http://localhost/usfq_ws/s.php');

//Llamamos la función que habíamos implementado en el Web Service
//e imprimimos lo que nos devuelve
echo $soapclient->call('hello',array( 'name'=>'Mundo')); 
Fuente: http://mimatrix.blogspot.com/2006/02...on-nusoap.html

en que está mal este código???