Receiving return of -1 instead of conversion rate in test request
All,
Sorry if this is a bone head question but I'm new to this.
I loaded SoapUI and followed the Tutorials on Wednesday of last week and everything worked fine. My system crashed hard and I had to replace it and now when I try to run the same Tutorial I receive a return value of -1 from the currency convertor in the tutorial instead of the expected 1.xxxxx.
Here is the xml I'm sending:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://www.webserviceX.NET/">
<soapenv:Header/>
<soapenv:Body>
<web:ConversionRate>
<web:FromCurrency>EUR</web:FromCurrency>
<web:ToCurrency>USD</web:ToCurrency>
</web:ConversionRate>
</soapenv:Body>
</soapenv:Envelope>
And this is what I get back:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<ConversionRateResponse xmlns="http://www.webserviceX.NET/">
<ConversionRateResult>-1</ConversionRateResult>
</ConversionRateResponse>
</soap:Body>
</soap:Envelope>
This is the WSDL I'm using:
http://www.webservicex.net/CurrencyConvertor.asmx?WSDL
I cannot figure out what I'm doing wrong, could someone please help me?
The reason is that the service responds with the value -1. Whatever currencies you put into, you get -1.
Many public services deteriorate over time.
You need to find another service to use. If you just need to play with a service, you can use e.g. the following:
http://currencyconverter.kowabunga.net/converter.asmx?WSDL