Problems to consume Web service SOAP https

0

I have a WS, but when I invoke one of its methods I get a message:protected =>Forbiden message, but when I test the WS with the SOAP UI app if I can access its methods and perform tests, it returns the corresponding values.

According to the service specifications for example to access the 'auntetica' method, you have to pass 3 parameters and it should work. the service is in https protocol, do I have to add some certificate somewhere?

   try {

$servicio="https://myws.svc?wsdl";

$parametros=array(
    'CODE' => 'ttt',
    'COD' => 'rrr',
    'CODI' => 'aaaaa'
);
$client = new SoapClient($servicio);
$result = $client->autentifica($parametros);
  var_dump($result);
 } catch ( SoapFault $e ) {
 echo $e->getMessage();
}
    
asked by frijjolitto 03.04.2018 в 18:07
source

0 answers