![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
19/07/2007, 11:30
|
| | Fecha de Ingreso: febrero-2004 Ubicación: Resistencia - Argentina
Mensajes: 299
Antigüedad: 21 años Puntos: 0 | |
Re: NuSOAP estuve probando el wervicio, y buscando un poco vi este codigo que funciona bien, te lo muestra en formato XML, si no lo necesitas en XML, solo comente la linea header('Content-type: text/xml'); y despues en el echo recorre como si fuera un array
<?php
require_once('nusoap.php');
$soapclient = new SoapClient('http://www.webservicex.net/globalweather.asmx?WSDL','wsdl');
$params['CountryName'] = 'Argentina';
$proxy = $soapclient->getProxy();
$result = $proxy->GetCitiesByCountry($params);
header('Content-type: text/xml');
echo $result['GetCitiesByCountryResult'];
?> |