/**
* downloadWsdl
* Baixa o arquivo wsdl necessário para a comunicação SOAP nativa
* O WSDL pode também ser usado para verificar a mensagem SOAP com o
* uso do SOAPUI um recurso muito importante para testes off-line.
* @param string $url
* @param string $priKeyPath
* @param string $pubKeyPath
* @param string $certKeyPath
* @return string
*/
public function downLoadWsdl($url, $priKeyPath, $pubKeyPath, $certKeyPath)
{
$soap = new Soap\CurlSoap($priKeyPath, $pubKeyPath, $certKeyPath);
$resposta = $soap->getWsdl($url);
if (!$resposta) {
$this->soapDebug = $soap->soapDebug;
return '';
}
return $resposta;
}