nuSoap
Publicado por Antonio (1 intervención) el 06/08/2006 00:37:54
Hola!!
He construido un cliente con nusoap, y pretende llamar a un server Soap-Lite.
El error que me sale al ejecutar el cliente es el siguiente:
Fault: Array ( [faultcode] => SOAP-ENV:Client [faultstring] => Denied access to method (hi) in class (main) at c:/Perl/site/lib/SOAP/Lite.pm line 2128. )
Tengo este código:
hibye_cliente.php (CLIENTE):
-------------------------------------
...
$client = new soapclient('http://localhost/cgi-bin/hibye.cgi');
...
$param = "";
$result = $client->call('hi',$param);
...
-------------------------------------
hibye.cgi (SERVIDOR):
-------------------------------------
#!perl -w
use SOAP::Transport::HTTP;
SOAP::Transport::HTTP::CGI
-> dispatch_to('Demo')
-> handle;
package Demo;
sub hi {
return "hello, world";
}
sub bye {
return "goodbye, cruel world";
}
Estoy utilizando la última versión de Nusoap y Soap-Lite 0.55 (con Perl 0.65).
Alguien me puede ayudar por favor?? Muchísimas gracias!!
He construido un cliente con nusoap, y pretende llamar a un server Soap-Lite.
El error que me sale al ejecutar el cliente es el siguiente:
Fault: Array ( [faultcode] => SOAP-ENV:Client [faultstring] => Denied access to method (hi) in class (main) at c:/Perl/site/lib/SOAP/Lite.pm line 2128. )
Tengo este código:
hibye_cliente.php (CLIENTE):
-------------------------------------
...
$client = new soapclient('http://localhost/cgi-bin/hibye.cgi');
...
$param = "";
$result = $client->call('hi',$param);
...
-------------------------------------
hibye.cgi (SERVIDOR):
-------------------------------------
#!perl -w
use SOAP::Transport::HTTP;
SOAP::Transport::HTTP::CGI
-> dispatch_to('Demo')
-> handle;
package Demo;
sub hi {
return "hello, world";
}
sub bye {
return "goodbye, cruel world";
}
Estoy utilizando la última versión de Nusoap y Soap-Lite 0.55 (con Perl 0.65).
Alguien me puede ayudar por favor?? Muchísimas gracias!!
Valora esta pregunta


0