0
I have an internal project in the company, where I perform a query in a SOAP webservice whose URL is at http.
I am with a Linux VPS Ubuntu 18 where in the domain linked to the ip of this VPS, a ssl certificate was applied via "certbot".
When trying to perform the query for a PHP script, error 500 is returned.
When I comment on the part of the code responsible for the consultation via SoapClient()
, the code is executed normally.
Is there any configuration that should be applied in this structure to avoid this incompatibility.
Sorry if you are asking something very simple, because I am a beginner and I have many questions.
Grateful for any help.
//////////////////////////////////// Consulta no Webservice
$soapcliente = new SoapClient('http://wsgsxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx?WSDL');
$param = array (
'EmpCliente' => $EmpClient,
'Login' => $Login,
'Senha' => $Senha,
'ObterLocalizacao' => 'false'
);
$response = $soapcliente -> Lista_UltimasPosicoes($param);
$array = json_decode(json_encode($response), true);
$retorno = $array['Lista_UltimasPosicoesResult']['Posicao'];
$count_retorno = count($retorno);