Best way to Add Web API tokens to a Web forms session based Website?
So the login and security is with sessions in webforms, but I want to change it to use web api and tokens. I'm basically looking to transition to a SPA. The whole site can't be re-written at once so...
View ArticleWhen to use Oauth2 server vs webserver bearer tokens?
I'm just a little bit confused. I have my web api working great creating it's own bearer token with owin. In my startup I set the oauth options...So is there any reason to have a specific dedicated...
View ArticleOdata unbound function - Custom class
Would it be possible to return a custom class through a unbound function in the Odata web api framework that has a collection as a property?For example, can you return this? public class Test1 { [Key]...
View ArticleHow to manually build odata metadata?
Hi,I'm working with odata. Here I get a requirement where I need to have a WebApi method which generate the metadata xml by the given entity name, like this:string GetSingleEntityMetadata(string...
View ArticleFactory pattern and Ninject
Hello,Can I use Ninject with DataFactory pattern? Or Ninject is the alternative of Datafactory pattern? As I think both are giving same kind of implementation.
View ArticleProgrammatically send XML in an HTTP Post
I have a page that needs to redirect xml posted to it to a web api service. The Response.Redirect always sends as a GET as I have learned so I lose the xml data after the redirect. Instead of the...
View ArticleISAPI extension in Visual Studio > 2005?
I am trying to develop an ISAPI Extension. I am using Visual Studio 2010. I follow the instructions here: http://msdn.microsoft.com/en-us/library/128f19zs%28v=vs.71%29.aspx to create a "MFC ISAPI...
View ArticleAsk web api with several parameters using c#
Hi,Hopefully this is the correct forum... I want to call a get function in web api, with more than one criteria. I have this code in my shared universal app.HttpClient test2 =newHttpClient();string...
View ArticleHow to create a trigger to call web api
I currently have a web api application which I I can use to request data, but i would like to create trigger functionality, within the API, which can trigger the API to send, whenever new data record...
View ArticleProblem Understanding Routing
I created a web controler api for my project and it says It cant find the resourceusing System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using...
View Articlecalling a web API (apicontroller) gets 404 returned
Hi have a web API (apicontroller) which works fine using localhost (uri: https://localhost/myproxy/api/mycontroller)But when deploy the web API on a remote machine, I got 404 returned.Is there any...
View ArticleParameter empty-string vs null
Hi. I have a controller which has a method "Fetch". The parameter is a complex object containing a few string values, and the return value is similar. For example:public FetchResult...
View ArticleFavicon.ico not displaying in browser address
Hi Guys,I've spent too much time on trying to display my favicon.ico 16x16 gif image in the url address bar (issue still shows nopcommerce favicon image)Apparently you can perform numerous steps to...
View ArticleHow to do Filed by Field saving using web api service.?
Hi All,Field by Field saving is requirement for my project. Can you all suggest me ways how to do that?Example:in the UI I have fileds like FirstName, LastName, DoB, Salry...After entering each field...
View ArticleTransactions with Web API, odata 4 using $batch
Can you create a transaction on the server when updating multiple entities?If not, what is the way to update multiple properties on multiple entities in a transaction scope? Distributed...
View ArticleHow to substitute root xml tag name returned in Get
In a Web API project I have the following...namespace WebApi.Models { [XmlRoot("GetTheData")] public class GetTheData : List<ItemPriceAvail> { } public class ItemPriceAvail {...
View ArticleWebApi – controllers inheritance – new versions of methods
I use Web API 2. I provide clients methods in version1:http://localhost/version1/api/base http://localhost/version1/api/valuesIt is mine...
View ArticleValidation Summary
Hi, I have been using Web API with angular js. I added validation for some text boxes and it is working fine. But I don't know, how to use validation summary to bring all the validation messages in...
View ArticleNamespace is not working
NameSpace "using ASPSnippets.FaceBookAPI;" isd not working in my project .I have installed FaceBook SDK.
View ArticleCall WebAPI from separate server
What is a safe way to centrally locate a WebAPI on a server and call that WebAPI through JavaScript from other websites on different servers.
View Article