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

Data sent throug PushStreamContent is recieved with delay

I use PushStreamContent class in ASP.NET for implementing SSE server.response.Content = new PushStreamContent(new Action<Stream, HttpContent,...

View Article


How to generate Excel file using Post Method...?

Hi all,Can anyone help to create and download Excel file Using WebApi Post mothod.Thanks in advance..!!!

View Article


Common Class to check HttpStatusCode

All,I would like to return some HttpStatusCode (e.g. OK, Created, Accepted, Unauthorize, Not Found, RequestTimeout and InternalServerError with msg) in Controller. Since I have multiple methods in...

View Article

Web API OData $filter query string too long problem

hi all,I m doing a simple job portal project now.I face a problem about query string too long, when i try to filter job by multi select job specializationse.g. : ~/api/jobs?$filter=jobSpecialization eq...

View Article

ActionFilterAttribute

I am using a ActionFilterAttribute in my WebApi to validate modelstate. Essentially validate the incoming model on a HTTP POST.public class ValidateModelStateAttribute : ActionFilterAttribute { public...

View Article


HTTP POST: Message Handler Issue plain/text

We have developed an HTTP Message Handler Server, that we will be using to receive and capture messages from remote devices via HTTP POST. The posts come to the system as a string (text/plain) format....

View Article

Can i replace Asp.net WEBAPI to TCP call on any port

Hi developers and experts,i am preparing a asp.net web Api in c#, which is accessible via http request.Now i a planning to remove the functionality of Http call and want to start TCP call from the...

View Article

How can POST multi parameters?

Hi, I would like to post multi parameters to the method but I fails.  public class login_in { public string user_code { get; set; } public string user_password { get; set; } } public login_return...

View Article


Odata Query against NOT database

Hi :)I'm working on a Web API that should support Odata queries. The only thing is that I have this concern:When I'm just Odata enabling my datasource (that is from Active Directory over...

View Article


Can I switch to an existing (I think) HTTPContext handler?

I have a class that is creating and downloading a PDF file.  If I call this class from my c# codebehind, it works like a champ.  If, however, I try to call it from a Web Service, it simply does...

View Article

use SAML as a bearer token in webAPI SPA

We have a legacy application which uses the Windows Identity Framework, written around 2010-2011.  Users authenticate by logging into a client portal, which then sends a saml token to our...

View Article

DatePicker in IE

I am developing an application that uses Datepicker in a textbox for Release date using MVC4. I used the following code in my model class [DataType(DataType.Date)] [DisplayFormat(DataFormatString =...

View Article

WebAPI - CORS

I'm at a loss, I', having some issues when accessing a WebAPI that I created on my web server. I read and went through the changes for the CORS found...

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

.net API

Hi All Developers ..I want to detect the API's running on my web service ..Is Reflection method cant help me .if yes then in what ways ..

View Article


weird api error

Hi, I am using echarts to display some data. It gave me error "api/echart_test has not been required.", while using jquery ajax to retrieve from api. but I can see the data from console  I attached the...

View Article

Load test a WebAPI

Hi,I have a WebAPI hosted on a centrally located server. I need to know how I can use Load test Project and load test this API using code instead of the load test wizard?Is there any separate forum on...

View Article


Web api and token configuration

suppose i have web api project where request will come from client but i like to know how could i authenticate user ?in asp.net we provide user id and pwd and then asp.net validate it against db and...

View Article

WebAPI & SignalR-Token Authentication - Authorizing SignalR Hubs

I have a WebAPI solution and I use token authentication, so the flow is the following:user tries to login using the username  and  password if the credentials are correct, he is given a token in order...

View Article

WebAPI protected resource for adding/editing/deleting scenarios

I have the following setup WebAPI hosted on IIS with OWIN token authenticationwith the following scenario:users have a personal resource like, let's say profile that only they can edit;in my...

View Article
Browsing all 4850 articles
Browse latest View live


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