ciao!

devo interrogare un webservice soap senza wsdl, e sto incappando sempre nell'errore Internal Server Error.

l'url è questo (testato su browser): http://www.sito.it/externalwebservic...apikey=API_KEY

questo il codice php:
Codice PHP:
ini_set('display_errors''1');
error_reporting(E_ALL);

$client = new SoapClient(NULL, array(
    
'location' => "http://www.sito.it/externalwebservice.asmx/",
    
'uri' => "http://tempuri.org/",
    
'trace' => 1
        
)
);

try {
    
$res $client->__soapCall('GetPlants', array(new SoapParam("apikey""API_KEY")));
    
var_dump($res);
} catch (
SoapFault $exception) {
    echo 
$exception->getMessage() . '<br>';
    
var_dump($client->__getLastRequest()) . '<br>';
    
var_dump($client->__getLastResponse()) . '<br>';


questo l'errore:
codice:
Internal Server Error
string(518) " apikey " NULL

qualche idea??