consuming web service with authentication allways give message Authentication required

后端 未结 2 1994
情书的邮戳
情书的邮戳 2020-12-21 01:19

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         


        
相关标签:
2条回答
  • 2020-12-21 02:14

    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.

    0 讨论(0)
  • 2020-12-21 02:17

    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;
    
    0 讨论(0)
提交回复
热议问题