Ver Mensaje Individual
  #7 (permalink)  
Antiguo 05/02/2012, 10:17
Sys_VUn
 
Fecha de Ingreso: septiembre-2009
Ubicación: DF
Mensajes: 20
Antigüedad: 14 años, 7 meses
Puntos: 0
Respuesta: Web Service desde php con mysql

Hola TheM4ster, gracias hermano por tu tiempo. Resolví el problema cambiando localhost por 127.0.0.1 del lado del cliente, quedando el código así:

Código PHP:
<?php
require('lib/nusoap.php');

$l_oClient = new soapclient('http://127.0.0.1/ws/ws.php?wsdl', 'wsdl');
$l_oProxy = $l_oClient->getProxy();

$parametro = $_GET['idProducto'];
$l_stResult = $l_oProxy->obtenerProducto($parametro);


print '<h1>Producto :</h1>'
. '<br>Id Producto: ' . $l_stResult['idProducto']
. '<br>Titulo : ' . $l_stResult['titulo']
. '<br>Descripcion ' . $l_stResult['descripcion']
. '<br>Precio ' . $l_stResult['precio'];

?>
Saludos.