[moby] [MOBY-l] Dynamically discovering service parameters
Mark Wilkinson
markw at illuminae.com
Fri Jul 22 17:11:37 UTC 2005
Hi Brian,
Thanks for the heads-up! The documentation for
MOBY::Client::ServiceInstance hasn't been updated properly.
You should be able to get what you want as follows:
my $outputs $ServiceInstance->output;
# returns MOBY::Cient::SimpleArticle, CollectionArticle,
# and/or SecondaryArticle objects
foreach (@$outputs){
if ($_->isSecondary){
print $_->articleName;
print $_->min;
print $_->max;
print $_->default;
print $_->datatype;
}
}
Hope that helps!
M
On Fri, 2005-07-22 at 11:20 -0500, bgulden at purdue.edu wrote:
> Is there any way to dynamically discover the secondary input for each
> service? Perhaps something akin to $ServiceInstance->input?
>
> Thanks
> -Brian Gulden
>
>
> _______________________________________________
> moby-l mailing list
> moby-l at biomoby.org
> http://biomoby.org/mailman/listinfo/moby-l
--
"Ontologists do it with the edges!"
Mark Wilkinson
Asst. Professor
Dept. of Medical Genetics
University of British Columbia
PI in Bioinformatics
iCAPTURE Centre
St. Paul's Hospital
Rm. 166, 1081 Burrard St.
Vancouver, BC, V6Z 1Y6
tel: 604 682 2344 x62129
fax: 604 806 9274
More information about the moby-l
mailing list