Questions tagged [odata-connected-service]

11 questions
3
votes
1 answer

How can I build a OData client based on a shared model (POCO classes)?

In my project I am using OData v3 and v4 (ASP.NET Web API with Entity Framework in the back). Currently I built a client using the Visual Studio tools. But is there another way? Do I really have to build a client based on the $metadata and the…
rittergig
  • 715
  • 1
  • 5
  • 16
2
votes
1 answer

Consuming OData in Blazor Client App using OData Connected Services

Created a netstandard2.1 blazor web assembly project. Added Odata Connected Service (V.0.10.0) to the same project. Generated the OData proxy class. Called the odata service from Task OnInitializedAsync() method from Razor page Calling OData…
Rahul
  • 2,431
  • 3
  • 35
  • 77
1
vote
1 answer

Blazor with ODataClient - Location Header is missing

I'm creating client side Blazor app with Microsoft.OData.Client. When I create new entity like this: var dataServiceContext = this.ClientFactory.CreateClient(new Uri("http://localhost:5000/odata")); var newAsset =…
1
vote
0 answers

Visual Studio 2017 OData Connected Service endpoint relative path

I've added connected service to Visual Studio 2017 which points to the local metadata file. The problem is that I had to point to the absolute path to this metadata file e.g. C:\Users\xxxx\Desktop\$metadata.xml, but I would like to keep relative…
Adrian Bystrek
  • 528
  • 2
  • 6
  • 19
0
votes
0 answers

Bridge RESO OData API

Im trying to use the OData Connected Service in Visual Studio to connect to a OData Feed in Bridge (RESO Feed). However, If I try and pull the metadata directly from a URL, it has errors Adding OData Connected Service to the project failed: Could…
littlevahn
  • 637
  • 2
  • 8
  • 25
0
votes
1 answer

Using custom http header for NTLM authentication in Odata Connected Service in visual studio 2019

This is first time I am trying something outside my work area. I normally work on D365 business central . I am trying to consume a webservice exposed on Dynamics Business Central in visual studio 2019 using Odata Conneted service but I am getting…
Mustafa
  • 1
  • 1
0
votes
1 answer

Cannot find body in HttpWebRequestMessage

Currently i'm using the Microsoft OData connected Service to control a WebAPI with HMAC. So far i managed to get the GET methods working. However when i POST a message i need to hash the raw HTTP body and add it to the header. (due to the HMAC…
Gforse
  • 323
  • 3
  • 20
0
votes
1 answer

Use HMAC with OData Connected Service

So we want to use a webapi that is build in ASP.net and uses OData as protocol. I did some homework and saw that Microsoft has a very good documenten OData Connected Service. The only thing I can't find is that the webapi we want to use has a HMAC…
Gforse
  • 323
  • 3
  • 20
0
votes
0 answers

DataServiceContext.ExecuteAsync results in exception regarding the User-Agent header

I've created a Xamarin.Forms application and added a connected Odata Service. Now when i try sending a request to the backend it will fail with the exception System.ArgumentException: The 'User-Agent' header must be modified using the appropriate…
Toastbrewt
  • 43
  • 4
0
votes
0 answers

Odata Connected service - How to use it?

I am currently trying to make a dummy console app, to understand how AX web API works. I added my odata webservice as a connected service, and from there not sure how i reference it in my main or make any get, calls to the service. using…
famle
  • 471
  • 2
  • 6
  • 10
0
votes
1 answer

Is there a way to get a subset of the D365 Web API for OData Connected Service

We're using Dynamics 365 for Operations and I'm trying to connect to the OData Web service it exposes for CRUD operations against the entities. Using the OData Connected Service tool, I can create a Connected Service reference. When I do this, it…
Jeff Reddy
  • 5,551
  • 9
  • 55
  • 88