[MOBY-dev] php client for biomoby services

jmrodriguez jmrodriguez at cnio.es
Tue Aug 19 08:31:16 UTC 2008


Hi,

Talking about PHP client for web services.
Have you checked the Web Services Framework WS02?
http://wso2.org/projects/wsf/php

I have recently discovered this framework and it looks nice.

J

 
Edward Kawas wrote:
> 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">&lt;?xml version=&quot;1.0&quot; 
> encoding=&quot;UTF-8&quot;?&gt;
> &lt;moby:MOBY xmlns:moby=&quot;http://www.biomoby.org/moby&quot;&gt;
>    &lt;moby:mobyContent&gt;
>      &lt;moby:serviceNotes&gt;
>        &lt;moby:mobyException moby:severity=&quot;error&quot;&gt;
>          &lt;moby:exceptionCode&gt;600&lt;/moby:exceptionCode&gt;
>          &lt;moby:exceptionMessage&gt;AN ERROR OCCURED DURING THE 
> SERVICE EXECUTION: Error in the XML input.
> SystemID: null
> Line (perhaps): 1
> Column: 1&lt;/moby:exceptionMessage&gt;
>        &lt;/moby:mobyException&gt;
>      &lt;/moby:serviceNotes&gt;
>    &lt;/moby:mobyContent&gt;
> &lt;/moby:MOBY&gt;
>
> </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
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> MOBY-dev mailing list
> MOBY-dev at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/moby-dev
>   


-- 
Have you tried CARGO?
http://cargo2.bioinfo.cnio.es/

*********************
José Manuel Rodríguez Carrasco            e-mail: jmrodriguez at cnio.es
Tlfn:    (+34) 91 732 80 00 ext: 2256     Fax:    (+34) 91 224 69 76
Bioinformatic Unit
Spanish National Cancer Center (CNIO) http://www.cnio.es
Zip Code: 28029
Address: C/. Melchor Fernández Almagro nº 3, Madrid (Spain) 


**NOTA DE CONFIDENCIALIDAD** Este correo electrónico, y en su caso los ficheros adjuntos, pueden contener información protegida para el uso exclusivo de su destinatario. Se prohíbe la distribución, reproducción o cualquier otro tipo de transmisión por parte de otra persona que no sea el destinatario. Si usted recibe por error este correo, se ruega comunicarlo al remitente y borrar el mensaje recibido.
**CONFIDENTIALITY NOTICE** This email communication and any attachments may contain confidential and privileged information for the sole use of the designated recipient named above. Distribution, reproduction or any other use of this transmission by any party other than the intended recipient is prohibited. If you are not the intended recipient please contact the sender and delete all copies.




More information about the MOBY-dev mailing list