Re: Perl xmlrpc server problem.
"fred_nurgles" <[email protected]> Fri, 07 May 2010 02:12:01 -0000
| Newsgroups | gmane.text.xml.rpc.specification |
|---|---|
| Message-ID | <[email protected]> |
--- In [email protected], "Randy J. Ray" <randy.j.ray@...> wrote: > > > > > Instead of > > > > push(sig,"a"); > > > > it should be > > > > push(@sig,"a"); > > > > Whew! I was going nuts trying to figure out what could have broken in > RPC::XML::Server, and how I would have missed it for so long... > > Randy > -- > Randy J. Ray / randy.j.ray@... > Campbell, CA Sorry, But this isn't the underlying problem. Somewhere in add_method it is trying to use an error response string as a method object. The bug is triggered when you leave out a required argument to add_method. e.g. #!/opt/local/bin/perl use strict; use warnings; use RPC::XML; use RPC::XML::Server; my $daemon = RPC::XML::Server->new(host => 'localhost', port => 8000); my $result = $daemon->add_method({name => 'test.test', signature => [ 'string', 'string' ]}); Macintosh-8:nups petery$ ./test2.pl Can't locate object method "is_valid" via package "RPC::XML::Method::new: Missing required data" (perhaps you forgot to load "RPC::XML::Method::new: Missing required data"?) at /opt/local/lib/perl5/site_perl/5.8.8/RPC/XML/Server.pm line 436 ------------------------------------ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/xml-rpc/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/xml-rpc/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/