Communicating with a user from Web API 2.0
I am looking for a design pattern for communicating messages back to a user when either a runtime error occurs or any business question needs to be asked. I think the way of doing it is to use Error...
View ArticleWhat is HMAC
HMAC is any encryption technique. i saw often people use it in WEB API but do not know whyso please tell me for what purpose people use HMAC in web api. thanks
View ArticleC# SOAP Client using WebForm and listbox
I'm very new to SOAP and C# but I trying to learn by building a simple SOAP web client. I've create a web form with a single button and listbox. Clicking the button sends a SOAP call to the web...
View Articleweb api 2 odata v4 batch request
Hi all,I m learning odata batch request. i have done the setup, when i try a first request, the backend web api controller can't get the post data. I think maybe something wrong for my code.below is my...
View ArticleWEB API Unit of Work, Batch SetLink Issue
Hi all,I have a Web Service Web API with Odata requests.I have implemented Unit of Work and Batch handler.I've been struggling with a batch request that have 1:1 related entities.This entities are new...
View ArticleOData poor development experience
Hi,I'd like to raise an issue which has been bothering me since OData (on top of WebApi) came out. I'd also like to encourage everyone to add to this thread all the issues that you encounter with OData...
View ArticleWeb API Post method
HI,I am new in Web Api development.We have to update the data two time from 1 controller.we are using post method with name [HttpPost()] [ActionName("UpdateStatus")] public HttpResponseMessage...
View ArticleParsing Json Data giving Error Can not Convert Object to String
Hi all, please i have this json...
View ArticleWeb API two factor authentication
Hi,I'm looking on information on how to implement two factor token based authentication in a Web API application. I'm limited to using WEB API version 1 using Visual Studio 2010 and .NET Framework 4.0....
View Articleissues when calling Web API from HTM page
I'm running into issues when calling my Web API that is hosted on our app server,On my web server, I have an HTM page that calls the WebAPI and when I call it from the web server as...
View ArticleHow to automatically generate documentation
ASP.NET MVC4 .NET 4 application needs to automatically generate documentation for using its Web API and regular controllers returning json. Visual Studio Community Edition is used and C# are...
View ArticleHow To Solve Error
I am Getting 500 internal server Error while checking the Web Api on fiddler.....i am checking the getById Method and Passing The Parameter to That Method...while debugging the method i am not getting...
View ArticleAzure Web site max requests per second
Hello guys.I've created two simple sites, both are hosted in Azure.1st - ASP.NET MVC application2d - ASP.NET WebApi applicationController action of MVC site makes 100 POST calls (HttpClient) to simple...
View ArticleSecuring a Web API with SSO server
Hi all, I've been doing research recently into how to implement SSO using a separate server to log users in. So far I've done allot of looking into Open ID Connect using Identity Server 3, it looks...
View ArticleMultitenancy & controller isolation
An advanced question. I have a multitenant application where controllers, validation & business rules are dynamically generated (Roslyn) based upon a tenant specific model (definition file)....
View ArticleHow suitable is the ASP.NET Web API for implementing a full fledged Service...
Hi all,I would like to know how suitable is the ASP.NET Web API for implementing a SOA architecture. How well does it compare with WCF exposing REST/JSON data?To the best of my knowledge, one cannot...
View ArticleInternal Server Error
I have a Web API having two Model Classes (User and UserAddress).Both of these classes have aone-to-one relationship between them.Code of the Model Classes is as follows:public partial class User {...
View ArticleHow call web api from mvc controller?
my api controllerpublic class ApiUserController : ApiController { private DatabaseContext db = new DatabaseContext(); public Member Add(Member model) { try { db.Members.Add(model); db.SaveChanges();...
View ArticleFailed to load resource: the server responded with a status of 406 (Not...
Hi all,I am working on a web Api (OData) and I am not sure what is causing this error when I call an action on my controller: Failed to load resource: the server responded with a status of 406 (Not...
View ArticleError loading System.Net.Http.Formatting
I upgraded my package to .net 4.5 framework and I am currently getting this error:System.IO.FileLoadException: Could not load file or assembly 'System.Net.Http.Formatting, Version=5.0.0.0,...
View Article