title: PHP + WSDL + SOAP - how do I display a webservice result on screen
body: <p>I'm just starting out in PHP and would like some advice as to how to get a webservice result to display in an array. </p>
  
  <p>For example I would like to print the currency codes into an array from the following WSDL</p>
  
  <pre><code>$wsdl="http://www.webservicex.com/CurrencyConvertor.asmx?WSDL
  </code></pre>
  
  <p>This is what I have so far but nothing really happens:  </p>
  
  <pre><code>$proxyhost="proxy.cpit.ac.nz";  
  $proxyport = 8080;  
  
  $wsdl="http://www.webservicex.com/CurrencyConvertor.asmx?WSDL";
  
  $client = new SoapClient($wsdl,
    array('proxy_host' =&gt; "$proxyhost",'proxy_port' =&gt; 8080, 'trace' =&gt; 1));
  
  $country=array();
  $result = $client-&gt;ConversionRate($country);
  print_r($result);
  </code></pre>