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

Validating Boolean Values

Using WebApi 2, I have a model that contains a Boolean value:[Display(Name = "notify")] [DataMember] public bool notify { get; set; }The input format is JSON.  ModelState will reject any value other...

View Article


How to return my custom class from my web api action

suppose this is my class which i like to return from my action public class Response { public bool IsSuccess { get; set; } public string Message { get; set; } public object ResponseData { get; set; }...

View Article


ASP.NET Web API 2 compatibility

WEB API II,  is posible install in a Windows Server 2012 64BITs, with framework 4.5, ISS v.8?

View Article

Can't pass data from json to web api

This is just killing me.It SHOULD be so easy.I've written a Web API that I need to call from json, passing arguments and getting a return value (to the json). I'm using POST because I need to pass a...

View Article

How to pass Auth Header in web api

Hi,I have to use one below third party weebAPI, but I am unable to use 3rd API,can anyone help me to resolve my query.<div class="col-md-3">UserEntityEmailAddress Password </div> <div...

View Article


Web API, problems with XML and POST

I think that I have found a bug with webapi. Seen a couple of people having problems with this and there seems to be a pattern.A simple service to initiate a print of invoices. Taking three parameters...

View Article

Trying to prove out JWT with Web Api and x509 Certificates

Hi,I am trying to use the Web Api and System.IdentityModel.Token.Jwt to do the following:Create a JWT signed with an x509 Certificate. Consume and validate the JWT signature. I am new to the Web Api...

View Article

Web API2 WebHostBufferPolicySelector UseBufferedInputStream override

Hello,I would like to ask if it is necessary to override  UseBufferedInputStream  method in Custom WebHostBufferPolicySelector, where base on rout i can turon on/off buffering.What i mean is that I am...

View Article


How to send xml to web api action

please give me a sample of web api action where i like to send person data in xml format.give me two sample code one is web api action which accept person data and one is httpclient which will send...

View Article


We migrated from Self-hosted to OWIN, then FATAL error...

Hi,We had Self-hosted Web API with log4net logging handler. Then we migrated to OWIN and add one LoggingMiddleware wiht log4net and deploy to PRODOne hour API was working ok, but after we got FATAL...

View Article

Can't connect to GoogleMapsAPI when 'target machine actively refused it'?

I'm using the GoogleMapsAPI to return some location data which I am using in a ASP.Net web application. The application sends a postcode (similar to Zip code) to google which returns information...

View Article

Error retrieving token ASP.NET Web API template

I’m working with a project that has been created as a ASP.Net Web Application with the ‘Web API’ template and ‘Individual User Accounts’ enabled as the authentication option. I have a console...

View Article

OAuth2.scopes -> AuthorizeAttribute for all controllers

Hi,I want to implement OAuth2 authentication scopes.I have 5 controllers. I added one XXXAutorizeAttribute filter to project and [XXXAuthorize("Controller1.Read")] added in every controller .Is it...

View Article


Image may be NSFW.
Clik here to view.

What template options do I use to create a Web API that has the calls listed...

I created this a couple of years ago for another client, but I can't remember what options I had created.There is a menu option for API created and it lists the Web API methods in the solution.I tried...

View Article

Need help upgrading my Project

Hello,I started a WEB API project with Visual Studio 2015 last year in June 2015. Since then the project has grown to be pretty massive and is currently being used in production serving clients. The...

View Article


I have two controllers with API methods, only one shows up in discovery

I added a controller, and both have Web API methods.I even copied this controller from another project that has the discovery working (when you click API, all the methods and url's are shown).But for...

View Article

connect to a company who has a Web API

All my search results show how to create a Web API and that is not what I want.I want to connect to a company who has a Web API. What are the basic steps to create a console application C# framework...

View Article


xamarin forms, own web api, oauth2

Hi, I'm no expert so please write your answer kindly and simply.I have xamarin forms app, i have own asp.net core web api. What i want to achieve is to access this webapi using some oauth2 provider...

View Article

Web API endpoints stops responding when a file upload is going on

Hi,I am facing the following issue. I have implemented a application with Web Api 2. One of the endpoints accepts multipart which I use for uploading file. After I start upload until it completes all...

View Article

how to consume wcf

Hi Friends,I have created a wcf application in localhost that I have consume in my ASP.NET application. that is working fine. I have hosted it in my windows server (IIS7) and browse that, and it is...

View Article
Browsing all 4850 articles
Browse latest View live