[MOBY-dev] php client for biomoby services
Edward Kawas
edward.kawas at gmail.com
Tue Jul 29 15:23:58 UTC 2008
Just in case, you didn't get it working (I am sure that you did, but just in
case ...), I attached 2 php files that you can test with.
The test client is in the file 'moby_php_test_service.php' and the
moby_soap_factory.php needs to be either in the same directory as the test
service or on your PHP include path.
Thanks to Julian Tonti-Filippini for creating the PHP basis for the attached
examples!
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: moby_php_test_service.php
Type: application/octet-stream
Size: 1308 bytes
Desc: not available
URL: <http://lists.open-bio.org/pipermail/moby-dev/attachments/20080729/4bc2e79c/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: moby_soap_factory.php
Type: application/octet-stream
Size: 4300 bytes
Desc: not available
URL: <http://lists.open-bio.org/pipermail/moby-dev/attachments/20080729/4bc2e79c/attachment-0005.obj>
More information about the MOBY-dev
mailing list