Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV forum
Suggested answer

Not Able to consume ODataV4 web service on remote machine in console app

Posted on by 145

Hello Guys,

I am trying to consume OData web service in my console application but i am getting issues.

Here are the steps that i followed...

1) Enabled OData web service and NTLM Authentication from Nav Server so i am able to access web service from browser.

but when i am trying to add service reference it is asking for username and password again and again.

2) When i tried to use as Odata Connected service it is giving me an error for URL but when i downloaded the metadata on my local machine and then tried to connect it worked but again getting unauthorized error in console application.

3) In postman web service is accessible using NTLM Authentication.

So please help me what am i missing so that i can connect with server URL in my console application and i can access it outside this machine like in D365 CRM.

Is there any other way so that i can connect it with MS D365 CRM.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Not Able to consume ODataV4 web service on remote machine in console app

    Hi Amit,

    Try using Basic Authentication with Postman. You need to create a web service access key on your user card and use it as password

    pastedimage1569650104006v1.png

    Username is your NAV username. Not sure if this will work in your console app though.

    Tero

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,556 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,625 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans