HTTP Basic authentication and Delphi

Hi,

I have to create a client for a Soap Web Service that use HTTP Basic authentication.
I can I manage this kind of authentification with Delphi ?

Regards

Armindo

You can use TROWinInetHTTPChannel.Login property for this

Thanks Evgeny for your reply.
I have already tryed this
ROChannel.Login.Username := ‘MyLogin’;
ROChannel.Login.Password := ‘MyPassword’;

with no success.

Same login and Password with SoapUI wroks.
Is there some other settings to set ?

Note that here it’s not a RO Soap server.

weird, this login is passed into WinINet InternetConnect method as described at https://msdn.microsoft.com/en-us/library/windows/desktop/aa384363(v=vs.85).aspx :

procedure TROWinInetHTTPChannel.SetConnected(iValue: boolean);
...
      FInetConnect := InternetConnect(FInetRoot, PChar(FURLHost), FURLPort, PChar(Login.UserName), PChar(Login.Password), INTERNET_SERVICE_HTTP, 0, Cardinal(Self));

So what should I do

I can’t reproduce this problem.
see testcase: testcase.zip (33.5 KB)

Hi Evgeny,
I understand well that it works with RO Server and RO Client.
In my case the server is not a RO one.
I can connect using SoapUI with same login and Password.
Is there a way to check if the authentication is well done in enveloppe for instance or in other way.
If you want I can send send you a private sample.
Regards

you can send it to support@