Problem of Schema Soap Laravel

0

Hello, guys. I'm trying to connect in a soap webservice using laravel. First the webservice is in a vpn, so I need to do a proxy, however I'm trying to consume. My mistake is this. SoapFault SOAP-ERROR: Parsing Schema: can not import schema. Namespace must not match the enclosing schema 'targetNamespace'

$client = new SoapClient('http://url/auth?wsdl');
    try {
        $client->validaUsuarioExterno(['login' => 'sandra.bondi.ws', 'senha' => 'xXdet8Yy']);
    } catch (SoapFault $excp) {
        die('Sem conexão '.$excp);
    }

    $passport = $client->validaUsuarioExterno(['login' => 'meu_login', 'senha' => 'minha_senha'])->passaporte;
    $function = 'obterDadosBoletoVeiculo';
    $arguments = array('obterDadosBoletoVeiculo' => array(
            'chaveConsulta' => '00011111100000',
            'tipoChave' => 1,
            'login' => 'meu_login',
            'passaporte' => $passport,
    ));
    // $options = array('location' => 'http://schemas.xmlsoap.org/soap/envelope/');        
    $clientConnect = new SoapClient('http://url/dados?wsdl');
    try {

        $result = $clientConnect->__soapCall($function, $arguments, $options);

    } catch (SoapFault $excp) {
        die('Não foi possível retornar os dados, error: ' . $excp);
    }

Exactly: $ clientConnect = new SoapClient (' link '); it returns me the error.

    
asked by anonymous 13.09.2018 / 21:45

0 answers