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

How to force application/atom+xml output from WebAPI 2 OData service

I'm trying to construct an OData WebAPI service in Visual Studio 2013, to provide a data interface to SAP Business Intelligence tools (4.1 SP2).I'm using Mike Wasson's OData tutorials...

View Article


Bad request (400) response on debug after lot of calls

Hi there!I'm developing a Web API and I detected a weird behaivour after lot of invokes to a Web API.The Web API respond normally but after a lot of invocations it start to respond with a "Bad Request"...

View Article


HttpPost method of Web API not firing 405 error..

Hi All,I am very new to Web API.I created a simple WebAPI Controller with two methods as below:namespace WebApplication3.Controllers { public class ValuesController : ApiController { // GET api/values...

View Article

Create RESTFul Service using ASP.NET Web API

hi i just want to know can i create clear restful service with asp.net web api?if i can create restful service ? is this real REsulful service or like restful but not real resful service?

View Article

Handling 404 Response

Hi Folks, I'm fairly new to Web APIs and I have read the best practice on a Get is to return a 404 HTTP Response when nothing is found.  Something like this code I found here...

View Article


Weird 405 Error

I have the following method signature in my WebAPI controller:[System.Web.Http.Route("api/paging/reports/{ProjectID?}/{PageNumber?}")] public ReportPageData ReportPage(Guid? ProjectID, int?...

View Article

Send variable/data from mobile web app to asp.net .aspx

I have created a mobile web application using phonegap framework (HTML/Javascript/Jquery)I will like to send some data from my mobile web application to my .aspx which is under MMORPGapi.sln (just a...

View Article

Send FORM Data in JSON format to Web API action without submiting the form

Hello, I need to preview the content of a form without submitting it. The idea is: 1. Get the form data, e.g, labels, inputs and textarea values; 2. Send the data using AJAX to a URL where I will...

View Article


Two projects with same core

Hello everybody :DI need to create two web apis that have different points of interests. I mean, they simply do different things. But both web apis should have same authentification and authorization...

View Article


Difference between WCF And Web Api

Dear Friends,I just need to know for concepts purpose. Whic is better WCF or WEB API and Why ?I have confusion . Please clear it 

View Article

Understanding custom authentication code

I am new into web api authentication and i require little assistance in understanding the following method below of an example web api:private bool TryGetPrincipal(string username, string password, out...

View Article

How to implement OnException in ApiController ?

The ApiController does not implement OnException as in Controller. How can I implement this method if I subclass ApiController? I know I can control exception handling by using an...

View Article

Authorise Web Api request

Can anyone tel me how to authorise WEB API Request.Please help .Actually i want any one can call my WEB Api service but for some authenticated request i will send the response .

View Article


Create model class in Visual Studio from WebAPI

HiIs it possible to automaticaly create the modell classes in Visual Studio?When I have to create a client which uses an asp.net WebAPI, it would be nice, if I haven't to create all the model classes...

View Article

HTTP Error 403.14 - Forbidden

I am learning http://www.asp.net/web-api/overview/getting-started-with-aspnet-web-api/tutorial-your-first-web-apidownload the project...

View Article


Model Binding WepApi2 is allways null

I have a model class:public class CheckUserEmail { [Required] [Display(Name = "Email Address")] [DataType(DataType.EmailAddress)] [EmailAddress] public string Email { get; set; } }And the following...

View Article

Intercepting and encrypting data in an Odata filter before it is consumed in...

A number of columns in the database are stored in an encrypted format (and we are stuck with this for the foreseeable future)http://localhost/Car?$filter=Name eq 'Ford'I would like to intercept the...

View Article


DELETE/PUT verbs result in 404 Not Found in WebAPI, only when running locally

I know this is a commonly addressed issue, and I've done everything that many posts here on SO suggest. When I try to delete a record using WebAPI (version 2) from my MVC5 front end running under local...

View Article

Multiple Actions with same parameter signature

I have following methods// GET api/values/5 [ActionName("Value")] public string GetValue(string name, string city) { return "value"; } [ActionName("Values")] public IEnumerable<string>...

View Article

how to create export excel feature

Dear all, I am writing to seek help, in how can i create a export feature within an api.  for example, i have a api set up to call data but i would like to add a feature, where it can allow the user to...

View Article
Browsing all 4850 articles
Browse latest View live


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