I try to use consume one web service with Delphi 2010. This web service is on port 8000 with authentication.
I implement the
function TForm4.EncodeL
If it still does not work, you can try a different client (.Net or Java), and compare the HTTP traffic with the help of a local proxy (Fiddler or Don's Proxy) or a sniffer (WireShark), to find the relevant differences.
For Basic Authentication this should work:
Basic Authentication in Delphi 7 SOAP
As explained in this post, newer versions of Delphi also allow to use
HTTPRio.HTTPWebNode.UserName := Username;
HTTPRio.HTTPWebNode.Password := Password;