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

From: Date: Sun, 24 Jan 2021 04:22:14 +0000
Subject: Bug #73542 [Fbk->NoF]: 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-231735@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: php-bugs@lists.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: Feedback +Status: No Feedback Type: Bug Package: SOAP related Operating System: All PHP Version: 7.0.13 Assigned To: cmb Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2021-01-13 18:40:55] 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> ------------------------------------------------------------------------ [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

« previous php.bugs (#231735) next »