问题
For a Microsoft CRM project, we need NTLM authentication in the Delphi 2009 web service client.
It looks like Indy 10 Tiburon already has experimental NTLM support.
How can I activate the NTLM authentication for the THTTPRio component and use the logon information (user name, password, domain) of the destination web service server?
Edit: it would also be helpful if there is a way to use other authentication methods than 'Basic', for example HTTP Digest access authentication.
回答1:
In the user name property of the WebNode subcomponent of the THTTPRio component, use the domain name followed by a backslash and the user name:
'domain\username'
After entering the WSDL URL at designtime, the HTTPRIO component will list available port and services.
回答2:
I'm not entirely sure I understand your question - activate NTLM authentication? If you're looking for NTLM API imports for Delphi, you can find those in the JEDI Windows Security Library on the JEDI API home page. If the plan is to see how to use it, I'd say MSDN is your friend.
来源:https://stackoverflow.com/questions/1068452/how-can-i-use-ntlm-authentication-in-a-delphi-soap-web-service-client