How to call a post webservice with NTLM Authentication bypassing the credentials

I have a webservice that accepts only windows authentication and simple authentication in HTTP web request doesn’t seem to work on this web service . How can i change my credentials when i make a cal to this web service?

Hello @varunt1411!

It seems that you have trouble getting an answer to your question in the first 24 hours.
Let us give you a few hints and helpful links.

First, make sure you browsed through our Forum FAQ Beginner’s Guide. It will teach you what should be included in your topic.

You can check out some of our resources directly, see below:

  1. Always search first. It is the best way to quickly find your answer. Check out the image icon for that.
    Clicking the options button will let you set more specific topic search filters, i.e. only the ones with a solution.

  2. Topic that contains most common solutions with example project files can be found here.

  3. Read our official documentation where you can find a lot of information and instructions about each of our products:

  4. Watch the videos on our official YouTube channel for more visual tutorials.

  5. Meet us and our users on our Community Slack and ask your question there.

Hopefully this will let you easily find the solution/information you need. Once you have it, we would be happy if you could share your findings here and mark it as a solution. This will help other users find it in the future.

Thank you for helping us build our UiPath Community!

Cheers from your friendly

I have the same problem. Did anyone find a solution?

1 Like

Did you find a solution?

NTLM use credentials from windows, so I add a domain windows credential with persistence of session before call the WS.
Then, when I call the WS, I do not select authentication type because it will be taken from windows credential previously created.

I do not know if there is a better solution, but this works for me. I hope it works for you too.

I found a solution in code: You can set on IApiAccessor.Configuration.ApiClient.RestClient.Authenticator = new NtlmAuthenticator()

And then call the WS VIA code too or VIA activity http request?

We call everything in c# code.

Could you share you code please? I don’t have much experience with C# code and I’m a little bit lost.

Thanks in advance.