|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [2016-11-16 13:43 UTC] felipe dot inacio at zorte dot com dot br
 Description:
------------
The code below works 100% in php 5.6.26 but not in php 7.0.13:
$obterOperacaoTransportePdf = [
        'ObterOperacaoTransportePdfRequest' => [
            'Integrador' => 'xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx', 
            'Versao' => '1',
            'CodigoIdentificacaoOperacao' => 'xxxxxxxxxx/aaaa',                  'DocumentoViagem' => ''
        ]
]; 
$options = array(
        'local_cert' => $this->certKEY,
        'soap_version' => SOAP_1_2,
        'cache_wsdl' => WSDL_CACHE_NONE,
        "style" => SOAP_RPC,
        'connection_timeout' => 15,
        'encoding' => 'UTF-8',
        'trace' => 1,
        'exceptions' => 1
);
$urlWsdl = 'https://sistema.efrete.com:6061/Services/PefService.asmx?wsdl';
$soap = new \SoapClient($urlWsdl, $options);
$data = $soap->ObterOperacaoTransportePdf($obterOperacaoTransportePdf);
Return when used PHP7:
[ObterOperacaoTransportePdfResult] => stdClass Object
(
        [Versao] => 1
        [Sucesso] => 
        [Excecao] => stdClass Object
            (
                [Mensagem] => Sistema e-FRETE (www.efrete.com): [Business] (Protocol: 86337) Error getting PDF from transport operation: Integrator not registered.
            )
        [ProtocoloServico] => 86337
) 
In PHP5.6.26 returns the PDF normally.
All other functions also does not work, this is example only.
Expected result:
----------------
Keep the operation be the same as php5.6. The server should receive the information correctly, because not currently receiving the 'Integrator' tag correctly.
Actual result:
--------------
The server not receive the information correctly, because not currently receiving the 'Integrator' tag correctly.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 02:00:02 2025 UTC | 
After execute "$soap->ObterOperacaoTransportePdf($obterOperacaoTransportePdf);", request in php 5.6.26 return: (Is correct and funcional.) <ns3:ObterOperacaoTransportePdf> <ns2:ObterOperacaoTransportePdfRequest> <ns1:Integrador>761ba43d-dc74-4900-85bf-70853fcae4a9</ns1:Integrador> <ns1:Versao>1</ns1:Versao> <ns2:CodigoIdentificacaoOperacao>165002046697/4615</ns2:CodigoIdentificacaoOperacao> </ns2:ObterOperacaoTransportePdfRequest> </ns3:ObterOperacaoTransportePdf> Request In PHP 7.0.13: (Is not correct.) <ns2:ObterOperacaoTransportePdf> <ns1:ObterOperacaoTransportePdfRequest/> </ns2:ObterOperacaoTransportePdf>