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

ADFS token expiration

I have an ASP.NET WebApi and MVC project hosted in azure and authenticating with an on-premise ADFS server. This works great.The issue we're having is, after an hour (not often exact), ajax posts (and...

View Article


Get status code after executing Web API

HiI want to add some data in web API. I am using streamwriter for that. But my problem is that after executing code i not getting status code.Even it adde data or error happened. why? How we get status...

View Article


How to remove all the HTML / CSS / JS from the default pages of a Web API...

Hi,I've inherited a Web API project which has the login, change password etc pages. I need to remove the default page and implement my own page from scratch to replace the Login page etc. I read up on...

View Article

$format=xml is not working in OData V4 (Web Api 2.2) with default configuration

Hi Everyone I just started catching up OData V4 (Web Api 2.2) and facing problem that I am not able to get XML response.  $format=xml is just being ignored and always getting JSON My requirement is...

View Article

Best way to publish Database as OData V4 end point (like WCF Data Service)...

The Background  :I have a database that is already build and I need to publish database as OData v4 Endpoint WCF Data Service is perfect candidate for this but it does`t support OData V4 as of now.Next...

View Article


Child Object are not being serialized in XML Response Odata V4 (Web Api 2.2)

Hi AllPlease refer to my thread https://forums.asp.net/t/2072207.aspx?Best+way+to+publish+Database+as+OData+V4+end+point+like+WCF+Data+Service+using+WebAPI+2+2+It has all the information about data...

View Article

LINQ - split a List into groups of 100, grouped by Customernumber,

Hello I am looking to split a List into groups of 100, grouped by Customernumber,The below method has syntax errors.  I don't want one Customer information split up in two different groups. Should be...

View Article

Web API post request missing the beginning of the content.

I've got a post going from angular to a web api backend, and the beginning of the content seems to be missing.  Both snippets go to the same "point" in the content - the start of the "clientextra"...

View Article


ASP.NET Consume WebService with SOAP Issue

I have to created a SOAP client in ASP.NET, framework 3.5, using Basic Authentication and WS SecurityEndpoint is something like: https://webservice.com/GetFirstName and the WSDL...

View Article


C# .NET 4.5 HTTPClient Request Using oAuth 2.0 protocol Examples

I am building an application that will consume the Caspio API/Web Service and would like to know if anyone has found links to or has a good simple code example consuming an api that is using the oAuth...

View Article

Query regarding web API verbs

Hi I was reading web api verb and the tutorial says1. Get - for getting the data2. Post - Inserting the data3. Put - Updating the data4. Delete - deleting the dataBut I have written a code using entity...

View Article

Avoid exception while using Web APIs

Hi All, My task is take users from one API and Put in someother API. before puting into new API i need to check this user is existing or not. But while i checking if its not exsting getting exception...

View Article

Why does DLL bindingRedirect not work from asynchronous HTTP Handler?

Making use of this article:  ThreadPool from HTTP HandlersI implemented this pattern and the production environment versus development environment have different Oracle connection client versions. The...

View Article


How to avoid the Windows Security popup and immediately return 401

I created a Web Api 4 Project using Windows Authentication, and then added an [Authorize(Roles="Administrators")] attribute to the Get() Method of the ValuesController. When I try to Access...

View Article

web api 406 not acceptable error occur when models changed - dBContext issue

I'm working on web api versioning code is from hereFacing issue when version change model class is also changed. I'm not sure but I think error is because of models change (used code first).in version...

View Article


logging errors

I use APIs to connect to a database.  It has an undefined amount of parameters, but will typically always include error id and error message.I'm logging every transaction with the APIs, but I'm...

View Article

What is wrong with my code?

I've made a cut down version of the project that I was having trouble with in my last post.The problem is basically that I am returning a Json object from the webapi, then posting that same Json back....

View Article


Security Web API 2

I'm newbie about security Web API,and i don't khow where to start ?How many ways to secure web api ?Thanks a lot !

View Article

how to inform client that data get from server comes from Web API cache

HelloI have created a web API A that get some JSon data from another Web API BI want to cache this Json data on my web API A as the data from B will not change frequently and that lot's of call will be...

View Article

How to store Tokens in client as Mobile or Tablet ?

Server send a response message with Token to Client ( Token Based Authentication ). How to store this Token in Client ?Sorry,My English is not good !

View Article
Browsing all 4850 articles
Browse latest View live


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