abhishes has asked for the wisdom of the Perl Monks concerning the following question:
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.
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,edited: Tue Sep 10 02:43:41 2002 by jeffa - code tags and +2 mop of <br/> removal
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SOAP::Lite Hello World Help
by semio (Friar) on Sep 10, 2002 at 05:33 UTC | |
by Anonymous Monk on Sep 10, 2002 at 10:47 UTC | |
|
Re: SOAP::Lite Hello World Help
by weini (Friar) on Sep 09, 2002 at 18:28 UTC | |
|
Re: SOAP::Lite Hello World Help
by rbc (Curate) on Sep 09, 2002 at 17:20 UTC | |
by abhishes (Friar) on Sep 09, 2002 at 17:32 UTC |