Bug #73542 [Opn->Fbk]: SOAP communication works in PHP5.6.26 but does not work in PHP7.0.13

From: Date: Wed, 13 Jan 2021 18:40:55 +0000
Subject: Bug #73542 [Opn->Fbk]: SOAP communication works in PHP5.6.26 but does not work in PHP7.0.13
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-231548@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73542&edit=1

 ID:                 73542
 Updated by:         cmb@php.net
 Reported by:        felipe dot inacio at zorte dot com dot br
 Summary:            SOAP communication works in PHP5.6.26 but does not
                     work in PHP7.0.13
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            SOAP related
 Operating System:   All
 PHP Version:        7.0.13
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

Is this still an issue with any of the actively supported PHP
versions[1]?

[1] <https://www.php.net/supported-versions.php>


Previous Comments:
------------------------------------------------------------------------
[2016-11-21 20:01:10] 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>

------------------------------------------------------------------------
[2016-11-16 13:43:35] 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.


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=73542&edit=1


Thread (4 messages)

« previous php.bugs (#231548) next »