Re: Soap::Lite install problems
Dougal Campbell <[email protected]> Thu, 20 Mar 2003 11:18:10 -0600
| Newsgroups | gmane.comp.windows.devel.soap.general |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 20 Mar 2003, Peter Smith wrote:
> [....]
> #!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";
> }
Shouldn't that be
#!/usr/bin/perl
at the beginning?
It's always best to provide the full path in the shebang line of a
script, rather that relying on the enviroment PATH to be correct.
Especially for CGIs.
> #!/bin/bash
> use SOAP::Lite;
> print SOAP::Lite
> -> uri('http://localhost/cgi-bin/Demo')
> -> proxy('http://localhost/cgi-bin/hibye.cgi')
> -> hi()
> -> result;
Same on this one, though it won't matter as long as you're doing "perl
hibye.pl" instead of just "./hibye.pl"
--
Ernest MacDougal Campbell III, MCP+I, MCSE <[email protected]>
http://dougal.gunters.org/ http://spam.gunters.org/
Web Design & Development: http://www.mentalcollective.com/
This message is guaranteed to be 100% eror frea!
===================================
This list is hosted by DevelopMentorĀ® http://www.develop.com
You may be interested in Guerrilla Web Services .NET, 14 April 2003, in Torrance, CA
http://www.develop.com/courses/gwsdotnet
View archives and manage your subscription(s) at http://discuss.develop.com