Forum Discussion

lazar's avatar
lazar
New Contributor
9 years ago

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?

  • KarelHusa's avatar
    KarelHusa
    Champion Level 2

    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

     

     

  • bruce1211's avatar
    bruce1211
    Frequent Visitor

    I am having the same problem. 

     

    I wonder did you ever resolve this issue?

    • iva's avatar
      iva
      Visitor

      I'm having the same problem.

      Did you resolve it?

    • lazar's avatar
      lazar
      New Contributor

      No, I have NOT resolved this and the only replies I have received are from people asking if I have.