Webservice Delphi XE5 Authentication

Asked

Viewed 685 times

1

I used WSDL importer to import the WSDL of webservice, but I am having difficulties in authenticating the query, when importing informed user and password, for the WSDL importer, and also tried to inform the user and password in the method GetWebservice, to the HTTRIO, something like:

RIO.HTTPWebNode.UserName := 'user'
RIO.HTTPWebNode.Password := 'pass'

But I always get the error:

Exception class Eremotableexception with message 'Error Authentication WS'.

To url is this https://spcpreproducao.cdl-sc.org.br/spc-web/ConsultaSpcscService?wsdl, like I’ve never worked with webservices I’m having a little trouble setting or using authentication.

Grateful.

  • I have a manual, in which an example is made in SOAP UI, in which I was able to make a call, but the : Authentication Type property, is filled with the value: Preemptive, probably would only set the authentication type for this mode in Delphi, but I can’t find property in HTTRIO

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.