[MOBY-dev] question about the bioMoby python API
Mark Fiers
mark.fiers at wur.nl
Fri Nov 26 14:57:35 UTC 2004
Hi
We've succeeded in using the biomoby python module to create an in house
biomoby service. Now we have registered this service and all of the
sudden it doesn't work anymore. Has anybody successfully done this?
As far as I can tell, ZSI does not parse the incoming xml correctly and
does not execute the service. Upon parsing the xml (oh,I'm using
http://mobycentral.cbr.nrc.ca/cgi-bin/gbrowse_moby):
##################################################
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<namesp755:getWAtDBIdByPOAcc xmlns:namesp755="http://biomoby.org/">
<body>
<![CDATA[
<?xml version='1.0' encoding='UTF-8'?><moby:MOBY
xmlns:moby='http://www.biomoby.org/moby-s'>
<moby:mobyContent><moby:mobyData queryID='23'>
<moby:Simple moby:articleName=''><Object
namespace='PO_acc' id='431260'/>
</moby:Simple></moby:mobyData>
</moby:mobyContent></moby:MOBY>
]]>
</body>
</namesp755:getWAtDBIdByPOAcc>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
##################################################
I I try a local script calling this function I get :
##################################################
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<ns1:getWAtDBIdByPOAcc xmlns:ns1="http://biomoby.org/" SOAP-ENC:root="1">
<v1 xsi:type="xsd:string"><moby:Object moby:namespace="PO_acc"
moby:id="9054" moby:articleName="PO_query"/></v1>
</ns1:getWAtDBIdByPOAcc>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
##################################################
Which works fine. As far as I can see ZSI does not like the "<body>" tag
in the upper xml. It barfs and tells me :
"Any cannot parse untyped element"
Does anybod have a clue why this is going wrong?
Cheers
Mark Fiers
Plant Research International
Wageningen
The Netherlands
>I am modifying the API in order to deal with the RDF files and solving
>some bugs:
>
>-Bug in the Dispatcher corrected (troubles with handling multiple
>queries simultaneously)
>added signatureURL and RDF for Registration process (in Service,
>ServiceList)
>-debug option when executing a service (trace of HTTP calls) in Central
>and Service Class
> (allows you to have the dump of all your SOAP transaction with the
>webservice)
>
>if you want to trace a SOAP call while executing a service just put:
> service.execute(mobyqueries, debug=True)
>and you'll have the complete trace of the execution
>
>when you deal with the Moby Central Server:
> client=Client(debug=True)
>to trace execution of your moby Query
>
>As Errare Humanum Est, feel free to notify me errors I missed :)
>
>I expect to release a corrected version in the end of next week.
>_______________________________________________
>MOBY-dev mailing list
>MOBY-dev at biomoby.org
>http://www.biomoby.org/mailman/listinfo/moby-dev
>
>
>
More information about the MOBY-dev
mailing list