Quantcast
Channel: Web API
Browsing all 4850 articles
Browse latest View live

Capture returned Access and Refresh token in Web Api

Hi,I'am using OAuth authentication with Web Api. And for audit purpose I need to capture the returned json that contain the access_token and the refresh_token. I've tried to use a DelegationHandler but...

View Article


Issue with OData V4 DateTimeOffset filter

I'm trying to filter a date field in an OData call by values which are either NULL or Greater Than the current date. I have tried all of the different things I could find on the internet. So far...

View Article


How to add Session to Web API in .net 4.5

This post http://forums.asp.net/post/4884822.aspx explains how to add Session to Web API.  However, in .net 4.5 webapi route is now registered with with Register(System.Web.Http.HttpConfiguration...

View Article

OData service on legacy database

Hi,What is the best option to build an OData service on a legacy database? All the tutorials are creating a database from scratch to match the entity framework model. How does it work with an existing...

View Article

Web API single page application

I need help with getting my program to complie using a file! I have a program that runs in the brwoser using an api but it does not reference the correct location. When I paste the information to the...

View Article


Conversion from type 'DBNull' to type 'String' is not valid

When I am trying to purchase an item the serial number object/string throws an exception...NEED HELP WITHE ONE LINE OF CODE THAT IS HINDERING THE WORK THAT NEEDS TO BE DONE. PLEASE HELP WITH...

View Article

never logout website

hi i wanna users not logout until users click logout link I mean keep login for ever Even shut down system or close website or open website after long time in same systemWeb services also have this...

View Article

Web API 2 OData v4 Requesting a Derived Entity Collection keep response 404

Base on this tutorial http://www.odata.org/getting-started/advanced-tutorial (Requesting a Derived Entity Collection)i try to make GET :...

View Article


Is that something I can possibly do in simple way for documentaion?

Hello,I have a question about documentation.Say you have methods like this...///<summary>/// This is my BlahBlah method/// <param name="para">///  Pass MyClass object///...

View Article


routeTemplate

HiI'm trying to setup a route that looks like this:routes.MapHttpRoute( name: "BookByProductNumber", routeTemplate: "api/{controller}?productnumber={productnumber}" );but I keep getting an error saying...

View Article

Web API Post Method

Hi,Am sorry to have ask for this question but i have search for resource with any help, I need to convert this part of the code to the pattern of Repository and Controller method but without any...

View Article

Web API - OData v4 - exception when using enum filter

Hi,I'm getting an "Type provided must be an Enum" exception, when using an enum filter.Note that I have no issues when adding, updating entities with enums. Only filtering seems broken (for me).I have...

View Article

API Data Collection *Help*

I am tasked with communicating with the DicksonOne API and pulling the information into an SQL database. I am familiar with SQL but the API communication is new for me. Can someone walk me through how...

View Article


Where to deploy Web API ?

Hello, I am creating a web page that calls web api. This Web API calls a json api every 5 minutes. Would you please guide me where to deploy this Web API to make sure it will not stop working.

View Article

OData nextLink Issue

We are building OData services over some of our Oracle databases using Entity Framework 6 and Web API 2 and have run into problems with the nextLink for expanded collections.Many of the links do not...

View Article


Generating Word document using web api callpi

Hi All,I am facing one issue while generating the word documents usng asp.net web api call.I have created a class library, which contains the logic to generate the word document. I referenced the class...

View Article

How to Send Verify Email Account Email and Get Confirm Email Back to the Web...

Hi,I am using Web API and I have a function where user has to enter his Email Id. I need to send a Confirmation Email to the user's email to Verify that the Email Id which he/she entered is...

View Article


Calling Webapi 2 service from MVC 5 controller

I want to call a webapi 2 service from MVC 5 controller, can anybody please help me out and give me some easy to understand examples.Thanks.ASAD

View Article

Authentication Filters - only hitting AuthenticateAsync once for every client

HiI'm trying to get to the bottom of authentication. I have a controller where I need basic auth to verify the credentails against a database. So I had a look at the Authentication Filters in Web APi2...

View Article

mixing authentication modes - ntlm on some controller/method, basic on...

I have a self-hosted web api service that needs to serve two kinds of clients:end users administratorsI'd like to have end users to use windows authentication, but admin actions should use basic...

View Article
Browsing all 4850 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>