Hello all,
I have a SOAP::Lite server that is calls a method runProgram from Class Tool. This method calls a method getSeq from Class ExSeq and also calls a method runTool from Class BioTools. Finally, the method runTool calls a method program from Class Test. This is where things break down. The method runTool creates an object to Class Test and then proceeds to call a method run, but there doesn't seem to be a reference in $thingy at all!
#server calls method runProgram from class Tool
dispatch_to(Tool::runProgram), etc...
#method runProgram calls getSeq and runTool from classes ExSeq and Bio
+Tools respectively
package Program;
use ExSeq;
use BioTools;
sub runProgram{
shift;
my $ids = shift;
my $exSeqObj = ExSeq->new();
my $file = $exSeqObj->getSeq($ids);
my $bioToolsObj = BioTools->new();
my $hashref = $bioToolsObj->runTool($file);
}
#method runTool calls run from Class Bio in Class Test
package Test;
use Bio;
sub runTool{
shift;
my $file = shift;
my $testObj = Bio->new();
my $thingy = $testObj->run($file);
}
I have tested a script that replicates the SOAP::Lite server's call to the runProgram method and everything seems to work just fine. PLEASE help!! I have been stuck on this for a couple of days now and I can't figure out what I'm doing wrong in the OOP code... I've taken out the constructor methods for brevity.
Thanks so much.
Al
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.