Resulta que empiezo a darle a este tema y he TRATADO por todos los medios hacer funcionar un ejemplo (el mismo fusilado)
![Pirata](http://static.forosdelweb.com/fdwtheme/images/smilies/pirate.png)
Código:
Acudo a su sabiduría. Estos son los fuentesOperation 'HolaMundoRequest' is not defined in the WSDL for this service
HolaMundo.php
Código:
ClienteHolaMundo.php<?php require_once('lib/nusoap.php'); function HolaMundo ($nombre) { return "Hola ".$nombre; } $server = new soap_server(); $ns="http://localhost/NuSOAP/HolaMundo"; $server->configurewsdl('ApplicationServices',$ns); $server->wsdl->schematargetnamespace=$ns; $server->register('HolaMundo',array('nombre' => 'xsd:string'),array('return' => 'xsd:string'),$ns); if (isset($HTTP_RAW_POST_DATA)) { $input = $HTTP_RAW_POST_DATA; } else { $input = implode("\r\n", file('php://input')); } $server->service($input); exit; ?>
Código:
Faltó decir que instale el NuSOAP 0.7.2 , no tengo proxy, php5.1.4 en apache 2.0.59<?php require_once('lib/nusoap.php'); $oSoap = new soapclient('http://localhost/NuSOAP/HolaMundo.php?wdsl'); $dato = $oSoap->call('HolaMundo',array('nombre' => 'Hollman'),'http://localhost/NuSOAP/HolaMundo'); if ($oSoap->fault === false) { echo "Error al llamar el metodo<br/>".$oSoap->getError(); } else { echo print_r($dato); } ?>
Éxitos.
![sonrisota](http://static.forosdelweb.com/fdwtheme/images/smilies/xD.png)