Dear Monks,
What am I doing wrong here?
I was going through a very nice tutorial on SOAP::Lite at
builder.com and everything was working
just fine up to their autodispatch example.
Here's the example:
#!/usr/bun/perl -w
use strict; #added by me cause perlmonks taught me so :)
use SOAP::Lite +autodispatch =>
uri=>"World",
proxy=>'http://soapserver.mycompany.com/soap/soapserver.cgi';
print HelloWorld();
print GoodByeWorld("sweet");
in case the problem is in the example perl object World
here is the code for that:
package World;
sub new {
bless {}, shift;
};
sub HelloWorld {
my ($self) = @_;
return "Hello World\n";
};
sub GoodByeWorld {
my ($self,$adjective) = @_;
return "Goodbye $adjective World\n";
}
1;
Here's the output:
$ ./soapClientAutoDispatch.pl
Use of inherited AUTOLOAD for non-method main::HellowWorld() is deprec
+ated at ./soapClientAutoDispatch.pl line 7.
Use of uninitialized value in string eq at /usr/lib/perl5/site_perl/5.
+6.1/SOAP/Lite.pm line 2374.
Use of uninitialized value in string eq at /usr/lib/perl5/site_perl/5.
+6.1/SOAP/Lite.pm line 2374.
Use of inherited AUTOLOAD for non-method main::GoodByeWorld() is depre
+cated at ./soapClientAutoDispatch.pl line 8.
Goodbye sweet World
I can only guess as to what the problem is.
Please help!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.