Click here for the new standard PHP SOAP code example
<?php

//WE ARE USING THE PEAR SOAP CLASSES FROM http://pear.php.net/package/SOAP

include("SOAP/Client.php");


//SET UP THE CONNECTION TO THE SERVICE

$soapclient =& new SOAP_Client("http://pathbase1.pdn.cam.ac.uk/axis/Pathbase2_SOAP.jws");
$options = array('namespace' => 'urn:Pathbase2_SOAP', 'trace' => 1);


//DO THE SEARCH AND OUTPUT THE RESULTS ARRAY

echo"<h1>Get image numbers for organism=Rat and mpath=458</h1><hr><pre>";
$ret = $soapclient->call("searchPathbase", $params = array("magnification"=>"","stain"=>"","organism"=>"Rat","sex"=>"","strain"=>"","gene"=>"","emap"=>"","cl"=>"","mpath"=>"458","ma"=>"","go"=>"","genotype_status"=>"","genetic_manipulation"=>"","designated_allele_name"=>"","experimental_manipulation"=>"","description"=>"","tbase"=>"","pubmed"=>"","series_number"=>"","submitter_id"=>"","source_reliability"=>""),$options);
print_r($ret);
echo"</pre><hr>";

?>