|
||
Financial web-services |
|
Here are two examples of my web-services powered by NuSOAP and the Incutio HTTP Client The first one returns the excange rate of a foreign currency against the Bulgarian lev (BGN) The second one returns the value of the SOFIX index
RequestPOST /ws/currencies.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:NeuromorfFinance/ExchangeRate#getRate" Content-Length: 594 <?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:NeuromorfFinance"><SOAP-ENV:Body><tns:getRate xmlns:tns="urn:NeuromorfFinance"><code xsi:nil="true"/><date xsi:type="xsd:string">24/8/2004</date></tns:getRate></SOAP-ENV:Body></SOAP-ENV:Envelope> Error: Response not of type text/xml
RequestPOST /ws/currencies.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:NeuromorfFinance/StockQuotes#getSOFIX" Content-Length: 574 <?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:NeuromorfFinance"><SOAP-ENV:Body><tns:getSOFIX xmlns:tns="urn:NeuromorfFinance"><date xsi:type="xsd:string">24/8/2004</date></tns:getSOFIX></SOAP-ENV:Body></SOAP-ENV:Envelope>On 24/8/2004 the SOFIX value was , change (%) |