2
I have the following code
    try {
$client = new SoapClient("link.wsdl");
$function = "METADOPRINCIPAL";
$arguments =  array(
'METADOPRINCIPAL' => array(
     'Msg'     => array(
       'Transacao'     => array(
         'ME_DVW' => array(
           'INSTITUCAO'     => 'K2',
           'CURSO'       => $curso
         )
        )
     )
 ));
$options = array('location' => '"link.wsdl"');
$result = $client->__soapCall($function, $arguments, $options);
print_r($result);
} 
catch (Exception $e) {
echo "Error! ";
   echo $e -> getMessage ();}
And I’m trying to make a simple get of the method parameters METADOPRINCIPAL but it’s going wrong:
SOAP-ERROR: Encoding: Object has no 'Fieldtypes' Property
I have tried several ways to make this SOAP connection work and I am not getting, can help me?
I need to pass only 2 parameters to get return, but so it seems I need to send the entire xml
'CURSO'       => $curso / 'INSTITUICAO'       => 'K2'