0
I’m trying to connect to a web service by PHP that for the documentation provided uses the SOAP protocol, but I can’t even connect through the URL provided.
URL: http://api.teleport.com.br/wsdl/Teleport
My code:
ini_set('soap.wsdl_cache_enabled',0);
ini_set('soap.wsdl_cache_ttl',0);
$url = "http://api.teleport.com.br/wsdl/Teleport";
try {
$client = new SoapClient($url);
$function = 'ConsultaVeiculos';
$arguments= array('ConsultaVeiculos' => array(
"senha" => "*************"
));
$options = array('location' => $url);
$result = $client->__soapCall($function, $arguments);
print_r($result);
} catch (Exception $e) {
print $result." = ".$e;
}
Error:
= SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't find in 'http://api.teleport.com.br/wsdl/Teleport' in PATH: SoapClient->SoapClient('http://api.tele...') #1 [internal function]: FUNCION->testSOAPService() #2 PATH/CodeIgniter.php(359): call_user_func_array(Array, Array) #3 PATH(219): require_once(PATH) #4 {main}
Does anyone know how to connect me to the web service? The documentation only shows this url and passed me a password, however the password should be to enter the Queriveiculos and gives error already in the new Soapclient()
I tried to access http://api.teleport.com.br/wsdl/Teleport, and I couldn’t even access the WSDL...
– Rodrigo Jarouche