[MOBY-dev] php client for biomoby services
Pierre-Yves Chibon
py at pingoured.fr
Tue Jul 29 09:09:26 UTC 2008
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:Solstis_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:Solstis_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>
More information about the MOBY-dev
mailing list