web services - php webservice print value -


i have webservice snippet , want print actual value returned.

$client = new soapclient("http://www.webservicex.net/currencyconvertor.asmx?wsdl");// gets webservice $converte =  $client->conversionrate (array("fromcurrency"=>"usd","tocurrency"=>"ils")); //calls converter 

now want value (when in webservice itself, xml , value of 3.94 ~, when try lets print_r($converte) get

stdclass object ( [conversionrateresult] => 3.94 ) 

the print_r printing out properties of object being returned web service. looks like, there 1 property in response, conversionrateresult

a stdclass object properties can accessed object operator ->

echo $converte->conversionrateresult;


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -