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

Reflection Api

Using Reflections  query get all methods with specific signature including parameters, parameter annotations and return type

View Article


Unable 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 Article


How 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 Article

Web 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 Article

Owin 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 Article


Problem 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 Article

Calling 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 Article

Explore 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 Article


Call 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 Article


how 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 Article

Unable 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 Article

Complex 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 Article

Request 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 Article


Difference 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 Article

Populate 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 Article


how 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 Article

How 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 Article


Ajax 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 Article

Regarding 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 Article

IQueryable 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
Browsing all 4850 articles
Browse latest View live


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