|
||
Here are two examples of my web-services powered by NuSOAP
The first one returns the ISI Impact factor of a scientific journal
The second one returns the details of the journal
POST /ws/ifs.php HTTP/1.0 User-Agent: NuSOAP/0.6.7 (1.75) Host: www.diagnosticarea.com Content-Type: text/xml; charset=ISO-8859-1 SOAPAction: "urn:NeuromorfJournals/ScientificJournals#getIFR" Content-Length: 572 <?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 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/" xmlns:si="http://soapinterop.org/xsd" xmlns:tns="urn:NeuromorfJournals"><SOAP-ENV:Body><tns:getIFR xmlns:tns="urn:NeuromorfJournals"><code xsi:nil="true"/><year xsi:nil="true"/></tns:getIFR></SOAP-ENV:Body></SOAP-ENV:Envelope>
Error: Response not of type text/xml
HTTP/1.1 200 OK Date: Sat, 04 Sep 2010 15:37:49 GMT Server: Apache X-Powered-By: PHP/5.2.6 Vary: Accept-Encoding Connection: close Content-Type: text/html <br /> <b>Catchable fatal error</b>: Object of class soap_fault could not be converted to string in <b>/www/diagnosticarea.com/root/include/nusoap.php</b> on line <b>2689</b><br />
Here is the description of the web-service