php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #73542 SOAP communication works in PHP5.6.26 but does not work in PHP7.0.13
Submitted: 2016-11-16 13:43 UTC Modified: 2021-01-24 04:22 UTC
Votes:5
Avg. Score:5.0 ± 0.0
Reproduced:5 of 5 (100.0%)
Same Version:4 (80.0%)
Same OS:4 (80.0%)
From: felipe dot inacio at zorte dot com dot br Assigned: cmb (profile)
Status: No Feedback Package: SOAP related
PHP Version: 7.0.13 OS: All
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: felipe dot inacio at zorte dot com dot br
New email:
PHP Version: OS:

 

 [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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-11-21 20:01 UTC] fgs dot inacio at gmail dot com
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>
 [2021-01-13 18:40 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-01-13 18:40 UTC] cmb@php.net
Is this still an issue with any of the actively supported PHP
versions[1]?

[1] <https://www.php.net/supported-versions.php>
 [2021-01-24 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue May 18 16:01:23 2021 UTC