I'm trying to get an xml from a Webservice soap wsdl. With the code below I can give a get in your methods.
$client = new SoapClient('http://www.roveri.inf.br/ws/cnpj.php?wsdl');
$result = $client->__getFunctions();
print_r($result);
Return is: Array ( [0] => string getCNPJ(string $token, string $cnpj) )
However when trying to access the method getCNPJ
$client = new SoapClient('http://www.roveri.inf.br/ws/cnpj.php?wsdl');
$result = $client->getCNPJ($token, $cnpj);
$xml = simplexml_load_string($result);
print_r($xml);
I get an exception:
Uncaught SoapFault exception:
Am I doing something wrong?