[MOBY-guts] biomoby commit
Mark Wilkinson
mwilkinson at pub.open-bio.org
Mon Jul 21 14:18:07 UTC 2003
mwilkinson
Mon Jul 21 10:18:07 EDT 2003
Update of /home/repository/moby/moby-live/Perl/MOBY/Client
In directory pub.open-bio.org:/tmp/cvs-serv3525/MOBY/Client
Modified Files:
Central.html
Log Message:
duh. have to update the HTML as well. It will sync with the website sometime today
moby-live/Perl/MOBY/Client Central.html,1.9,1.10
===================================================================
RCS file: /home/repository/moby/moby-live/Perl/MOBY/Client/Central.html,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- /home/repository/moby/moby-live/Perl/MOBY/Client/Central.html 2003/07/18 21:44:55 1.9
+++ /home/repository/moby/moby-live/Perl/MOBY/Client/Central.html 2003/07/21 14:18:07 1.10
@@ -58,11 +58,19 @@
use MOBY::Client::Central;
my $Central = MOBY::Client::Central->new();</pre>
<pre>
- my @Services = $Central->locateServiceByInput('Sequence');
- foreach my $SERVICE(@Services){
- print "Central Registry: ", $SERVICE->registry, "\n";
+ my ($Services, $REG) = $Central->findService(
+ input =>[
+ [DNASequence => ['NCBI_gi', 'NCBI_Acc']],
+ ]);
+ unless ($Services){
+ print "Service discovery failed with the following errror: "
+ print $REG->message;
+ end
+ }
+ foreach my $SERVICE(@{$Services}){
print "Service Name: ", $SERVICE->name, "\n";
print "Service Provider: ", $SERVICE->authority,"\n";
+
}</pre>
<p>
</p>
More information about the MOBY-guts
mailing list