Consume OData Service from Visual Studio 2017

前端 未结 1 1182
我寻月下人不归
我寻月下人不归 2021-01-20 03:35

I\'ve a issue consuming Dynamics Nav OData. I\'m using Visual Studio Community 2017 (version 15.9.0), and I\'ve installed the extension OData Connected Service (Official Mic

1条回答
  •  礼貌的吻别
    2021-01-20 03:50

    I had the same issue (I'm also working with Dynamics Nav ;) )

    The problem is that OData Connected Service doesn't support authorization.

    You need to save metadata file locally and point it when adding OData Service Reference.

    1. Open http://myWeb:8145/DynamicsNav90_Desa/OData/$metadata in the browser and save it on disk
    2. Use path to this file during adding service reference in Visual Studio:

    For me it works perfectly.

    0 讨论(0)
提交回复
热议问题