getError(); if ($err) trigger_error($err, E_USER_ERROR); // Get service proxy from the client object // This allows to call methods specified in WSDL $proxy = $client->getProxy(); // Check for errors in the creation of the proxy $err = $proxy->getError(); if ($err) trigger_error($err, E_USER_ERROR); // Call the runAndWaitFor method on the service via the proxy // Input parameters must be defined in a named array. // Keys must be named as the inputs of the service. // Values are effective query terms. // Here, I request the entry having id "LMG 991" from the BBCM_LMG library, // remmeber you have to change all blank space occurrences with the '_SP_' string. $array=array($key[0] => $value[0], $key[1] => $value[1]); $result = $proxy->runAndWaitFor($array); // Check for errors in the execution $err = $proxy->getError(); if ($err) { trigger_error($err, E_USER_ERROR); } // Print the result else { // The output is again an array, where keys are the names of the outputs // and values are their actual values. // In case you don't know the name of the output, // You can print the $result array after serializing it // $s=serialize($result); // echo "$s\n"; echo "\n\n"; $output=$result["result"]; echo "This is the result:\n\n$output\n";; } ?>