How to use (how to call) web services ? A first test, and 2 questions
source: w3schools
QUESTION ONE: This seems to work ok. But how do I convert the resulting XML answer into a sentence such as
The result is 123.4 Fahrenheit. ?
first solution by Ray Paseur, about temperature and currency conversion
second solution by Ray Paseur, about temperature conversion
Solution by srosebabu, using the nuSOAP library
Solution by srosebabu, including currency conversion, using the nuSOAP library
The freezing point of water is 0 degrees Celsius (= ... Fahrenheit).
The body temperature of healthy persons is 36.5 Celsius (= ... Fahrenheit).
The boiling point of water is at 100 degrees Celsius (= ... Fahrenheit).
QUESTION TWO: How do I call the webservice
not on the press of a button, but on showing this website,
to translate all these 3 temperatures into Fahrenheit ?
One more sample: Currency exchange rates (for instance from USD to EUR):
source: webserviceX.net