[MOBY-l] Can s/o correct the Perl examples online
Bjoern Usadel
Usadel at mpimp-golm.mpg.de
Thu May 25 17:02:07 UTC 2006
Dear List,
can someone please correct the Document:
http://biomoby.open-bio.org/CVS_CONTENT/moby-live/Docs/MOBY-S_API/Perl/ConstructingYourService.html
in the section sub _generic_service_name
in the block
#######
return SOAP::Data->type('base64' => responseHeader("illuminae.com") . responseFooter()) unless (keys %$inputs);
# if you are only able to understand data in a particular namespace, then you
# are required to validate that namespace before continuing. To validate it (or several)
# pass them to the validateNamespaces subroutine, and it will return to you a list of
# the assicoated namespace LSID's
# my @validNS = validateNamespaces("NCBI_Acc"); # ONLY do this if you are intending to be namespace aware!
# $queryID is the enumerated identification of this query.
# This is client-side defined, so do not validate this!
$this_invocation = $inputs->{$queryID}; # this is the block with this queryID
########
somewhere queryID should be defined
probably the line
"foreach my $queryID(keys %$inputs){"
got lost?
Moreover in the section "A service that echoes"
in the line "if (my $input = $this_invocation->{GO_id}){"
it might be nice to replace "GO_id" by something more generic.
Cheers,
Björn
More information about the moby-l
mailing list