How to call webapi from anjularjs, when webapi application hosted at...
How to call webapi from anjularjs, when webapi application hosted at different domin.
View Articleweb api with entity framework or ADO.net
We have web application developed in Asp.net 3.5 with 3 tier architecture. At that time we have used ADO.net and stored procedure. Now we planning to convert it into SPA using AngularJS and asp.net Web...
View ArticleHow to define what is web api
i know web api is http based service which expose many action and each action return some data when user invoke action.i like to know how to define it nicely in interview board because web api is also...
View ArticleRemoving Server HTTP Header in OWIN Self-Hosted Application
I have a application self-hosted OWIN application and I want to remove the Server header ("Microsoft-HTTPAPI/2.0") from all responses. When searching this on Google it looks like a very easy task e.g....
View ArticleProblems Passing Values to Web Api2
Hello everyone and thanks for the help in advance. I am trying to post values to a web api2 controller but am having problems with one of the values being passed. Here is the ajax: var jqxhr =...
View ArticleLimiting Results based on Group Membership
Hi EveryoneI'm a bit new to the development world, coming from an infrastructure side into setting up a new Web Application for our infrastructure. I'm putting together an ASP.NET Web API based APP...
View ArticleOptions to secure the Calls between the Web Api & WCF
I have legacy WCF services.The client application gets enhanced, so added an Web API layer for new functionality, having a facade layer to consumes the legacy WCF service.In web api layer, token based...
View ArticleSecure Web API from public access using API key or some API ID
I would like to know how to secure the Web API from public access using API key or some id to authorize the user to access the API web methods.Kindly share your inputs on this.Thanks.
View ArticleSend Email controller example
I am looking for an example of how to send an email with webapi. I have ones I use with mvc just sending through gmail and gmail sent me a message saying it was an unauthorized/insecure attempt by...
View ArticleAPI returning a bunch of \t and \n
what am I doing wrong here? i'm trying to consume the ncaa data but I'm getting a bunch of \t and \n in my data, which makes it so I can't serialize it to an object. Here is my function, you can...
View ArticleXML Serialization
Hi!I started a thread over here: http://forums.asp.net/p/2091101/6039931.aspx?Re+Serializing+RSS+Feed+Getting+Element+Names+CorrectBut maybe this question is better placed here as I'm trying to do this...
View ArticleFile not downloaded throw web api - and no errors ?
Hii try to download file throw web api with resume support - i use this example as guide Implement resume download in asp.net in my web api controller i use code: public IHttpActionResult...
View ArticleCan't see posted data sent from AngularJS code to Web API method
I'm working on rewriting one of our web applications to use AngularJS to make it an SPA (single page application). I have created the form and followed all the recommendations in the AngularJS...
View ArticleHow To Use ashx with web api and angularjs to make download working ?
Hii try to download file throw web api with resume support - i use this example as guide Implement resume download in asp.net and i call web api throw angularjs as:app.controller("NewTrialController",...
View ArticleHelp with Web API - getting POST content
So I have created a controller class to get the content of an HTTP post. The method is as follows:' POST api/<controller> Public Sub PostValue(<FromBody()> ByVal value As String) 'code...
View ArticleReturning register info after user register
Hi. I have a problem with registering user via restful service. I have web api project with individual user account authentication chosen. While i am registering new user via my rest request which is...
View ArticleCall Visual Studio API wizard
Does anyone how to call the API wizard in Visual Studio from either a command line or C#?
View ArticleWeb API Basic authentication
Hi,I am new to Web API, my first work on Web API. I have to build a web api service tat will be called from internet. I understand that when Web API service is hosted in IIS, I can set it up with...
View ArticleASP>NET WEB API 2 - Http post strange error
Hi,I'm randomly getting object null reference when doing http post from Angular code to ASP.NET WEB API 2. My API is expecting custom class object as parameter in API. Sometimes it randomly throws null...
View ArticleOWIN + MVC + OData batching issue
hi all, In this post http://damienbod.com/2014/08/14/web-api-odata-v4-batching-part-10/said : If using the OData batch handler in Web API, you need to configure this in the GlobalConfiguration in the...
View Article