1
I am trying to get an xml from a Webservice Soap wsdl. With the code below I can get a get on your methods.
$client = new SoapClient('http://www.roveri.inf.br/ws/cnpj.php?wsdl');
$result = $client->__getFunctions();
print_r($result);
The return is: Array ( [0] => string getCNPJ(string $token, string $cnpj) )
But 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:
I’m doing something wrong?