php - webservicex for Currency Convertor don't work -


i trying develop e-commerce website. manage multi-currency, use webservice automatic conversions. tried webservice: http://www.webservicex.com/currencyconvertor.asmx?wsdl code :

     try         {             $wsdl="http://www.webservicex.com/currencyconvertor.asmx?wsdl";             $webservice = new \soapclient( $wsdl );              $country=array();              // set country variable country codes.             $country['fromcurrency']= 'usd';             $country['tocurrency'] = 'eur';              $webservice->conversionrate($country);               echo $response->conversionrateresult;*/         }catch(exception $oexception)          {             printf(                 '<h4 style="color: red">exception</h4>                 <p>%s</p>',                 $oexception->getmessage()             );         } ` 

unfortunately, service returns me - 1 there problem code or it's service no longer works!!

you know web service stable? thank much

have @

https://openexchangerates.org/

http://fixer.io/

they both have straight forward api can integrate to.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -