HTTPS request to Microsoft Dynamics NAV 2013 Web Service

Hello,

I have the following case:

We are doing development in which we are receiving client data from Microsoft NAV 2013 via Web Service.
The client create Web Service directed to their test environment. The endpoint is http://*.local:7748/*Test/OData/. I have tested to receive data with activity for HTTP request. Authentication is basic, everything was fine. Tested it via SoapUI, I’m receiving everything correctly.

Then we started migration to live Web Service. The endpoint is with little difference (there is HTTPS) - https://:7048//OData/.
And then there is something I cannot explain. I’m testing to receive data with excel(Data->Get data->From other sources->Odata feed ->putting the endpoint->Authenticate(domain\usernam and password) and everything is fine). I’m testing to receive data with SoapUI rest service -> putting the endpoint -> basic authentication ->username, domain and password->all data is received successfully.
Then I’m going in UiPath and nothing. First there was error with status code 0. I checked and thier certificate was expired. They renew the certificate, then I started to receive status code 400 and following response:
“<?xml version=""1.0"" encoding=""utf-8""?><m:error xmlns:m=”“http://schemas.microsoft.com/ado/2007/08/dataservices/metadata”"><m:code /><m:message xml:lang="“en-US”">The server has rejected the client credentials.</m:message></m:error>"
. I checked and the status code 400 is for Bad Request, but the response is saying the server has rejected client credentials.
Also I tried to add certificate in the activity ->
When I opened endpoint via IE and checked certificate I tried to get the path of the certificate and add it to ClientCertificate(but I don’t know how to get the password for it). I’m assuming I don’t need, because via Excel and SoapUI everything is working automatically, only with credentials. Don’t need to put and additional certificates and etc.

Can someone help me or guide me what to search?

Hello @GeorgeSpasov!

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
Forum_Staff