Hello All,
I have installed soap lite on my windows machine and I am not able to execute the Hello World sample from james snell's soap programming book.
Please tell me what I am doing wrong.
Hello.pm
--------
package Hello;
sub sayHello{
shift;
return "Hello ". shift(@_);
}
HelloSoap.plx
-------------
use strict;
use warnings;
use SOAP::Transport::HTTP;
use Hello 'c:/Inetpub/Scripts';
SOAP::Transport::HTTP::CGI
->dispatch_to('Hello::(?:sayHello)')
->handle
;
HelloClient.pl
--------------
use strict;
use warnings;
use SOAP::Lite;
my $name = shift;
print "The soap server says ";
print SOAP::Lite
->uri('urn:Example1')
->proxy('http://localhost/Scripts/HelloSoap.plx')
->sayHello('$name')
->result. "\n\n";
When I run my client (perl HelloClient.pl World) it doesn't do hello world. it just says "soap server says: " and then the program completes. no error messages ... no warnings...
Please tell me what is incorrect in my code.
regards,
Abhishek.
edited: Tue Sep 10 02:43:41 2002 by jeffa - code tags and +2 mop of <br/> removal