[MOBY-dev] php client for biomoby services
Edward Kawas
edward.kawas at gmail.com
Tue Jul 29 14:56:04 UTC 2008
Hi Pierre,
Take a look at the following example that someone created at a TIGR
workshop.
https://biomoby.tigr.org/wiki/index.php/JCVI_Workshop#::_Step_5_-_how_to_cre
ate_a_MOBY_client_in_PHP_::
This example did work at the time and may still do the trick.
Eddie
-----Original Message-----
From: moby-dev-bounces at lists.open-bio.org
[mailto:moby-dev-bounces at lists.open-bio.org] On Behalf Of Pierre-Yves Chibon
Sent: July-29-08 2:09 AM
To: MOBY-dev at lists.open-bio.org
Subject: [MOBY-dev] php client for biomoby services
Dear list,
We have been trying to make a php client for a simple biomoby web
service that we developed few days ago.
We are facing a problem in the creation of the input XML. We think that
using php soap library we create soap XML and not moby XML. Which
obviously returns an error.
Has anyone of you ever try to make a simple client in php or just even
call a bioMoby service via php ?
Below is the input that is sent to our service and the XML retrieve from
that service
Thanks for your help,
Best regards,
Pierre
input:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="http://avilin05.avignon.inra.fr"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV
:Body><ns1:Solstis_getProject><data
xsi:type="xsd:string">a:1:{s:12:"Solstis_User";a:3:{s:8:"userName";s:4:"test
";s:8:"password";s:4:"test";s:5:"email";s:12:"test at test.fr";}}</data></ns1:S
olstis_getProject></SOAP-ENV:Body></SOAP-ENV:Envelope>
output:
<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><ns1:Sol
stis_getProjectResponse
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="http://avilin05.avignon.inra.fr"><Solstis_getProjectReturn
xsi:type="xsd:string"><?xml version="1.0"
encoding="UTF-8"?>
<moby:MOBY xmlns:moby="http://www.biomoby.org/moby">
<moby:mobyContent>
<moby:serviceNotes>
<moby:mobyException moby:severity="error">
<moby:exceptionCode>600</moby:exceptionCode>
<moby:exceptionMessage>AN ERROR OCCURED DURING THE
SERVICE EXECUTION: Error in the XML input.
SystemID: null
Line (perhaps): 1
Column: 1</moby:exceptionMessage>
</moby:mobyException>
</moby:serviceNotes>
</moby:mobyContent>
</moby:MOBY>
</Solstis_getProjectReturn></ns1:Solstis_getProjectResponse></soapenv:Body><
/soapenv:Envelope>
_______________________________________________
MOBY-dev mailing list
MOBY-dev at lists.open-bio.org
http://lists.open-bio.org/mailman/listinfo/moby-dev
More information about the MOBY-dev
mailing list