[MOBY-l] Ruby & MOBY
Twigger Simon
simont at hmgc.mcw.edu
Thu Nov 16 20:22:06 UTC 2006
Is anyone doing any ruby with MOBY services? I saw a thread a while
back that referred to a ruby API but google and other searches didnt
throw any more light on the subject.
I tried a simple test the other day using bog standard ruby
approaches to point to a moby service WSDL but got an error at the
WSDL parsing stage. Here's what I tried:
moby_test.rb
require 'soap/wsdlDriver'
wsdl = 'http://bioinfo.icapture.ubc.ca:8090/mobyservices/services/
convertKeggGeneId2ProtId?wsdl'
driver = SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver
>ruby moby_test.rb
RuntimeError: part: data cannot be resolved
method rpcdefinedtype
in methodDefCreator.rb at line 144
method collect_rpcparameter
in methodDefCreator.rb at line 49
method collect_rpcparameter
in methodDefCreator.rb at line 47
method create_param_def
in wsdlDriver.rb at line 130
method add_operation
in wsdlDriver.rb at line 101
method each
in namedelements.rb at line 58
method each
in namedelements.rb at line 57
method add_operation
in wsdlDriver.rb at line 96
method create_rpc_driver
in wsdlDriver.rb at line 40
at top level
in moby_test_service.rb at line 6
Program exited.
To my eye the WSDL coming from the URL looks reasonable so Im not
quite sure what is going wrong here. I've had this code work very
nicely with non-moby services (see below) so I was hoping to be able
to make my ruby connection to the mobysphere in a similar fashion.
Can anyone who is more ruby or MOBY-WSDL savvy suggest what might be
amiss?
Cheers!
Simon.
-----
Working service call (non-moby)
require 'soap/wsdlDriver'
wsdl = 'http://www.ebi.ac.uk/Tools/webservices/wsdl/WSDbfetch.wsdl'
driver = SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver
puts driver.getSupportedDBs()
this returns:
embl
emblsva
emblcon
emblanncon
emblcds
medline
pdb
refseq
refseqp
hgbase
interpro
uniprot
uniparc
uniref100
uniref90
uniref50
jpo_prt
epo_prt
uspto_prt
ipi
--
Simon N. Twigger, Ph.D.
Assistant Professor, Department of Physiology
Medical College of Wisconsin
8701 Watertown Plank Road,
Milwaukee, WI, USA
tel: 414-456-8802
fax: 414-456-6595
AIM/iChat: simontatmcw
More information about the moby-l
mailing list