Reflection Api
Using Reflections query get all methods with specific signature including parameters, parameter annotations and return type
View ArticleUnable to access form data for proper HMAC implementation
I've been banging my head against the wall for a few days now. It looks like there is NO way to see the raw string that makes up the form of the HTTP request from inside an actionfilter.I need this raw...
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 ArticleWeb API using windows authentication + Xamarin Client
Hi all, I'm working on an android application and I need to make sure the user is connected, so our manager wants to use the active directory to verify if the right user is connected. So I created a...
View ArticleOwin self host web-api with OData
I'm trying to create an owin self host webapi with odata support. I added all the dependencies and set everything up, when i call the get method (just by surfing to it with chrome). The breakpoint i...
View ArticleProblem when returning data via WS
I'm having trouble consuming the data from this WS. The code I rode is working with another URL, but with this (http://api.promasters.net.br/cotacao/v1/valores) not returning the JSON data. I tested...
View ArticleCalling get with httpclient buggy.
I have a solution set up. Core/Infrastructure/Web each in it's own project. I have a controller in web Calling a Service in core. This service calls out to a repository in Infrastructure. I have a...
View ArticleExplore ApiControllers from external assemblies
Hi. What I want is to develop an application to explore ApiControllers in external assemblies in order to generate documentation (for example, Word or txt document).I know about Web Api Help Page but...
View ArticleCall Web API Controller from MVC action by passing multiple parameters
Hi,I have MVC controller like below. I need to call Web API controller from controller by passing multiple parameters.public ActionResult Report() { // need to call Web API from here by passing...
View Articlehow to set Decimal Fraction more than 2 digits(C# to SQL).
Hi All,When I tried to insert decimal value(0.9232) into SQL Table inserting only 2 digits(0.92). Please help me on this.FYIinput :...
View ArticleUnable to translate Unicode character
I have a ASP.NET Web API and a mobile app.I monitor the Web Api with Newrelic and i see a lot of: "Unable to translate Unicode character \uD83C at index 237 to specified code page. "A lot of users...
View ArticleComplex JSON output from WEB API
I have a complex JSON request that I need to output from GET (ie. www.mywebsite.com/controller/id) and this the JSON result I need to output (JSONfile){"conf1": {"default": "string1","default2":...
View ArticleRequest is Null in HttpResponseMessage
I am using System.Web.Http version 5.2.3.0 and .NET version 4.5.2 public HttpResponseMessage GET(string EnteredVariable) { Data DataModel = new Data(); using (DataTable aDataTable =...
View ArticleDifference POST handling Web API vs MVC?
Hi, Why is it possible to post multiple values to a MVC-controller method but not to a API-controller method? I.e public class TestAPIController : ApiController { [HttpPost] public void...
View ArticlePopulate client side DB from Server Side DB using Web API 2
Hi,I have two same Databases with different names in Sql server. I am using one of them as my Client Side DB and the second one as my Server Side DB. I want to populate the Client side DB from the...
View Articlehow to call web api methods in mvc5 from fiddler
How Can I call below Method from fiddler..[HttpPost] [Route("api/AddUserData/")] // POST: api/User public IHttpActionResult AddUserData([FromBody]UserMaster userMaster) {}how can pass userMaster...
View ArticleHow many ways we can providing security for web api
i am only familiar with form authentication beside this what other options or ways exist to provide security for web api.please discuss in details and if possible include good tutorials for this topic.
View ArticleAjax call async api issue
Hi all,Currently, I met an issue about Ajax calling async method which defined in web api. The issue is we can't get the result, and the http get method show us canceled status. Not sure why this...
View ArticleRegarding web api and token management
i know how form auth work. user send credentials to server and that credentials check against db and if valid then form auth ticket drop in user pc.1) so same way i like to know how token is drop in...
View ArticleIQueryable add serverside filter
Hi!Standard Web API code was generated when I added the Controller, and I have added a line for getting the Identity of the user. I now want to filter out the records based on the Identity:// GET:...
View Article